Crates.io | git-conventional |
lib.rs | git-conventional |
version | 0.12.7 |
source | src |
created_at | 2020-05-06 01:31:44.772573 |
updated_at | 2024-07-25 13:48:12.178331 |
description | A parser library for the Conventional Commit specification. |
homepage | https://github.com/crate-ci/git-conventional |
repository | https://github.com/crate-ci/git-conventional |
max_upload_size | |
id | 238037 |
size | 65,393 |
code>conventional::Commit
A Rust parser library for the Conventional Commit spec.
Cargo.toml
:$ cargo add git_conventional
let commit = git_conventional::Commit::parse("feat(conventional commit): this is it!").unwrap();
assert_eq!(commit.type_(), git_conventional::Type::FEAT);
assert_eq!(commit.scope().unwrap(), "conventional commit");
assert_eq!(commit.description(), "this is it!");
assert_eq!(commit.body(), None);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.