{"id":23810817,"url":"https://github.com/huitseeker/comby-rust","last_synced_at":"2025-09-06T19:32:08.527Z","repository":{"id":43750631,"uuid":"211557136","full_name":"huitseeker/comby-rust","owner":"huitseeker","description":"Rust refactoring templates for comby, the structural find-and-replace tool.","archived":false,"fork":false,"pushed_at":"2022-11-17T07:50:54.000Z","size":46,"stargazers_count":33,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-24T05:54:01.948Z","etag":null,"topics":["comby","linting","parsing","program-transformation","refactoring","rust","search-and-replace","syntax-transformation"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huitseeker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-28T20:21:30.000Z","updated_at":"2024-07-11T07:51:16.000Z","dependencies_parsed_at":"2023-01-22T00:49:53.249Z","dependency_job_id":null,"html_url":"https://github.com/huitseeker/comby-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huitseeker%2Fcomby-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huitseeker%2Fcomby-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huitseeker%2Fcomby-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huitseeker%2Fcomby-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huitseeker","download_url":"https://codeload.github.com/huitseeker/comby-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232140220,"owners_count":18478220,"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":["comby","linting","parsing","program-transformation","refactoring","rust","search-and-replace","syntax-transformation"],"created_at":"2025-01-02T00:43:41.654Z","updated_at":"2025-01-02T00:43:42.111Z","avatar_url":"https://github.com/huitseeker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comby-rust\n\nRewrite rules for [Rust](https://github.com/rust-lang/rust) code using the\n[comby](https://comby.dev/) refactoring tool.\n\n## Overview\n\nThis structural find-and-replace tool allows implementing rules with different\npurposes:\n\n- `templates.toml`:\n  refactorings that are non-controversial and will require minimal manual supervision a posteriori. They should not change code semantics.\n- `experimental-templates.toml`:\n  refactorings that are a matter of style, or will require modifications in a large number of cases, but may still be useful.\n- `nopanic.toml`:\n  refactorings that remove panics (and therefore change semantics).\n\n## Requirements and installation\n\n  Please refer to the [comby installation and usage instructions](https://comby.dev/docs/get-started).\n\n## Running\n\n- `comby -config templates.toml -f .rs` finds matches\n- `comby -config templates.toml -f .rs -i` replaces file contents\n- **You may want to run `cargo clean` before running the above**\n- **You should run `cargo fmt` after running the above**\n\nExclude `target` directory with:\n\n- `comby -config template.toml -f .rs -i -exclude-dir target`\n\n## Testing\n\nSee the `test/run.sh` script for templates and expected results.\n\n## See also\n\n[go-patterns](https://github.com/comby-tools/go-patterns), a similar pattern\nrepo for the Go language, which inspired this.\n\n## Licence\n\nCopyright 2021 François Garillot\n\nThis software is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\nfile, You can obtain one at http://mozilla.org/MPL/2.0/.\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of\nConduct][coc]. By participating in this project you agree to abide by its\nterms.\n\n[coc]: https://github.com/huitseeker/comby-rust/blob/master/CODE_OF_CONDUCT.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuitseeker%2Fcomby-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuitseeker%2Fcomby-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuitseeker%2Fcomby-rust/lists"}