{"id":24692766,"url":"https://github.com/zcyc/protorenumber","last_synced_at":"2026-02-24T00:04:09.278Z","repository":{"id":272767597,"uuid":"917693982","full_name":"zcyc/protorenumber","owner":"zcyc","description":"a command-line tool that renumbers the fields in Protobuf (.proto) files while preserving the original field order","archived":false,"fork":false,"pushed_at":"2025-02-27T21:29:46.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T19:19:18.258Z","etag":null,"topics":[],"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/zcyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2025-01-16T13:27:42.000Z","updated_at":"2025-02-27T21:29:50.000Z","dependencies_parsed_at":"2025-01-16T14:58:00.239Z","dependency_job_id":"c1a5b2ac-d035-4a6c-9f14-5e9c37d2f4b8","html_url":"https://github.com/zcyc/protorenumber","commit_stats":null,"previous_names":["zcyc/proto-renumber"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zcyc/protorenumber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Fprotorenumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Fprotorenumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Fprotorenumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Fprotorenumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcyc","download_url":"https://codeload.github.com/zcyc/protorenumber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcyc%2Fprotorenumber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271448360,"owners_count":24761433,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-26T20:17:07.686Z","updated_at":"2025-10-28T15:13:04.110Z","avatar_url":"https://github.com/zcyc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protorenumber\n\nprotorenumber is a command-line tool written in Rust that renumbers the fields in Protobuf (`.proto`) files, preserving the original field order\n\nThe tool is particularly useful for developers who want to clean up or reorganise Protobuf files by assigning sequential field numbers starting from 1\n\n## Features\n\n- Automatically renumber field numbers in Protobuf files (starting at 1 and incrementing sequentially)\n- Preserves the original field order in the Protobuf file\n- Simple and easy-to-use CLI interface\n\n## Install\n\n```bash\ncargo install --git https://github.com/zcyc/protorenumber\n```\n\n## Usage\n\n### Command Syntax\n\n```bash\nprotorenumber --input \u003cinput_file\u003e --output \u003coutput_file\u003e\n```\n\n### Arguments\n\n- `--input` (or `-i`): The path to the input `.proto` file _(Required)_\n- `--output` (or `-o`): The path to save the renumbered Protobuf file _(Required)_\n\n### Example\n\n```bash\nprotorenumber --input example.proto --output output.proto\n```\n\nExpected output:\n\n```\nRenumber proto file written to: output.proto\n```\n\n## Example Input and Output\n\n### Input File (`example.proto`)\n\n```proto\nsyntax = \"proto3\";\n\nmessage User {\n  string name = 3;\n  int32 age = 1;\n  string email = 4;\n}\n\nmessage Product {\n  int32 id = 2;\n  string description = 6;\n  double price = 3;\n}\n```\n\n### Output File (`output.proto`)\n\n```proto\nsyntax = \"proto3\";\n\nmessage User {\n  string name = 1;\n  int32 age = 2;\n  string email = 3;\n}\n\nmessage Product {\n  int32 id = 1;\n  string description = 2;\n  double price = 3;\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcyc%2Fprotorenumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcyc%2Fprotorenumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcyc%2Fprotorenumber/lists"}