{"id":13822609,"url":"https://github.com/rustic-games/conventional-commit","last_synced_at":"2025-05-12T04:30:41.935Z","repository":{"id":57610693,"uuid":"201508705","full_name":"rustic-games/conventional-commit","owner":"rustic-games","description":"A rust parser library for the Conventional Commit spec.","archived":false,"fork":false,"pushed_at":"2019-12-05T17:06:31.000Z","size":61,"stargazers_count":8,"open_issues_count":9,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T07:50:36.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.conventionalcommits.org","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustic-games.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-09T16:56:25.000Z","updated_at":"2024-02-02T14:50:27.000Z","dependencies_parsed_at":"2022-08-27T10:40:58.203Z","dependency_job_id":null,"html_url":"https://github.com/rustic-games/conventional-commit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-games%2Fconventional-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-games%2Fconventional-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-games%2Fconventional-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustic-games%2Fconventional-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustic-games","download_url":"https://codeload.github.com/rustic-games/conventional-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253675083,"owners_count":21945893,"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":[],"created_at":"2024-08-04T08:02:08.633Z","updated_at":"2025-05-12T04:30:41.600Z","avatar_url":"https://github.com/rustic-games.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003e\u003ccode\u003econventional::Commit\u003c/code\u003e\u003c/h1\u003e\n\n[![Latest Crate Version](https://img.shields.io/crates/v/conventional.svg?logo=rust\u0026label=version\u0026logoColor=white\u0026colorB=brightgreen)](https://crates.io/crates/conventional \"The latest released version on crates.io.\")\n[![Library Documentation](https://docs.rs/conventional/badge.svg)](https://docs.rs/conventional \"The online documentation at docs.rs.\")\n[![Discord Chat](https://img.shields.io/discord/477552212156088320.svg?logo=discord\u0026label=discord%20chat\u0026logoColor=white)](https://discord.gg/Kc4qZWE \"Ask a question or just enjoy your stay!\")\n\n\u003cbr /\u003e\n\u003cstrong\u003eA Rust parser library for the \u003ca href=\"https://www.conventionalcommits.org\"\u003eConventional Commit\u003c/a\u003e spec.\u003c/strong\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003c/div\u003e\n\n### Quick Start\n\n1. Add the crate to your `Cargo.toml`:\n\n   ```shell\n   cargo install cargo-edit\n\n   cargo add conventional\n   ```\n\n2. Import the `Commit` type and the `Simple` trait to parse a commit string, and\n   query its different components as string slices:\n\n   ```rust\n   use conventional::{Commit, Simple as _};\n\n   let commit = Commit::new(\"feat(conventional commit): this is it!\").unwrap();\n\n   assert_eq!(\"feat\", commit.type_());\n   assert_eq!(\"conventional commit\", commit.scope());\n   assert_eq!(\"this is it!\", commit.description());\n   assert_eq!(None, commit.body());\n   ```\n\n3. Upgrade to `Typed` components for strongly typed access:\n\n   ```rust\n   use conventional::{Commit, Typed as _};\n\n   let commit = Commit::new(\"feat(conventional commit): this is it!\").unwrap();\n\n   assert_eq!(Type(\"feat\"), commit.type_());\n   ```\n\n4. Check out tools like [**Jilu**] for an example of library usage.\n\n[latest specification]: https://www.conventionalcommits.org/en/v1.0.0-beta.4/#specification\n[**Jilu**]: https://github.com/rustic-games/jilu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustic-games%2Fconventional-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustic-games%2Fconventional-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustic-games%2Fconventional-commit/lists"}