{"id":17308624,"url":"https://github.com/teddriggs/syn-select","last_synced_at":"2025-04-14T13:45:42.913Z","repository":{"id":34061127,"uuid":"168071242","full_name":"TedDriggs/syn-select","owner":"TedDriggs","description":"Lightweight path selector for searching Rust code","archived":false,"fork":false,"pushed_at":"2023-05-22T15:05:13.000Z","size":30,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T10:15:48.001Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TedDriggs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-29T02:00:45.000Z","updated_at":"2024-10-05T13:57:57.000Z","dependencies_parsed_at":"2024-10-31T22:31:29.487Z","dependency_job_id":"ff99e5a8-9ca4-4dae-b0f6-5916b3650dd2","html_url":"https://github.com/TedDriggs/syn-select","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":"0.30000000000000004","last_synced_commit":"8b919396cf357b0d446a0417019f4379780df822"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedDriggs%2Fsyn-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedDriggs%2Fsyn-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedDriggs%2Fsyn-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TedDriggs%2Fsyn-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TedDriggs","download_url":"https://codeload.github.com/TedDriggs/syn-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248890508,"owners_count":21178448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust"],"created_at":"2024-10-15T12:05:36.970Z","updated_at":"2025-04-14T13:45:42.888Z","avatar_url":"https://github.com/TedDriggs.png","language":"Rust","readme":"# syn-select\n\n[![Build Status](https://travis-ci.org/TedDriggs/syn-select.svg?branch=master)](https://travis-ci.org/TedDriggs/syn-select)\n[![Latest Version](https://img.shields.io/crates/v/syn-select.svg)](https://crates.io/crates/syn-select)\n[![Documentation](https://docs.rs/syn-select/badge.svg)](https://docs.rs/syn-select)\n\nLightweight path selector for searching Rust code.\n\n```rust\nmod a {\n    mod b {\n        trait C {\n            fn d(self) {}\n\n            fn f() {}\n        }\n    }\n}\n\nfn main() {\n    let src_file = syn::parse_str(include_str!(\"./rs\")).unwrap();\n\n    // This will print out the trait `C`, limited to only function `d`.\n    dbg!(syn_select::select(\"a::b::C::d\", \u0026src_file).unwrap());\n}\n```\n\n# Wildcards\nUsing `_` as a path segment in a wildcard will match any element in that position.\nFor example, in the following:\n\n```rust\nmod imp {\n    struct H;\n}\n\nmod imp2 {\n    struct H;\n}\n```\n\nThe selector `_::H` would match both structs named `H`.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddriggs%2Fsyn-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteddriggs%2Fsyn-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddriggs%2Fsyn-select/lists"}