17 releases
new 0.12.3 | Mar 23, 2023 |
---|---|
0.12.1 | Dec 29, 2022 |
0.12.0 | Jul 18, 2022 |
0.11.2 | Jan 18, 2022 |
0.9.0 | May 6, 2020 |
#101 in Parser implementations
9,715 downloads per month
Used in 14 crates
(8 directly)
47KB
969 lines
code>conventional::Commit
A Rust parser library for the Conventional Commit spec.
Quick Start
-
Add the crate to your
Cargo.toml
:cargo install cargo-edit cargo add git_conventional
-
Parse a commit and lookup what you need
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);
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
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.
Dependencies
~0.7–1MB
~20K SLoC