{"id":13822456,"url":"https://github.com/conventional-commits-rs/cargo-next","last_synced_at":"2025-05-16T17:30:53.365Z","repository":{"id":53795477,"uuid":"285418669","full_name":"conventional-commits-rs/cargo-next","owner":"conventional-commits-rs","description":"A cargo subcommand to query or set the version of a crate.","archived":false,"fork":false,"pushed_at":"2024-03-08T01:28:48.000Z","size":97,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T02:20:10.123Z","etag":null,"topics":["cargo-subcommand","cli","rust-library"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/cargo-next","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/conventional-commits-rs.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license-apache","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":"2020-08-05T22:33:52.000Z","updated_at":"2023-07-21T02:05:08.000Z","dependencies_parsed_at":"2024-07-17T07:22:44.806Z","dependency_job_id":null,"html_url":"https://github.com/conventional-commits-rs/cargo-next","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"0f81a4987ba09f9ddb3299cdff7de6bfd96585d3"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conventional-commits-rs%2Fcargo-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conventional-commits-rs%2Fcargo-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conventional-commits-rs%2Fcargo-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conventional-commits-rs%2Fcargo-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conventional-commits-rs","download_url":"https://codeload.github.com/conventional-commits-rs/cargo-next/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576398,"owners_count":22094362,"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":["cargo-subcommand","cli","rust-library"],"created_at":"2024-08-04T08:02:00.936Z","updated_at":"2025-05-16T17:30:53.015Z","avatar_url":"https://github.com/conventional-commits-rs.png","language":"Nix","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# cargo-next\n\n[![Maintenance](https://img.shields.io/badge/maintenance-actively%20maintained-brightgreen.svg)](https://github.com/conventional-commits-rs/cargo-next)\n[![crates.io](https://img.shields.io/crates/v/cargo-next.svg)](https://crates.io/crates/cargo-next)\n[![crates.io](https://img.shields.io/crates/d/cargo-next)](https://crates.io/crates/cargo-next)\n[![Documentation](https://docs.rs/cargo-next/badge.svg)](https://docs.rs/cargo-next)\n\n\u003e A cargo subcommand to set the next version of a crate.\n\n## Installation\n\n```text\ncargo install cargo-next --locked\n```\n\n## Usage\n\n### Binary\n\n```text\n$ cargo next --minor\n$ cargo next 0.1.5\n$ ./emits-new-version.sh | cargo next\n$ cargo next --get\n0.2.3\n```\n\n### Library\n\n```rust\nuse cargo_next::{bump_version, get_version, set_version, SemVer};\n\nlet path_to_toml = ...;\n\n// Bump the version by a semver component.\nlet _res = bump_version(\u0026path_to_toml, SemVer::Minor);\n// Set the version directly.\nlet _res = set_version(\u0026path_to_toml, \"0.1.2\");\n// Or get the version of a crate.\nlet _res = get_version(\u0026path_to_toml);\n```\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"license-apache\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"license-mit\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconventional-commits-rs%2Fcargo-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconventional-commits-rs%2Fcargo-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconventional-commits-rs%2Fcargo-next/lists"}