/
View dependency graph
Depends on
- dh-cargo (dh-sequence-cargo)
- cargo, debhelper-compat, librust-serde-1+default-dev, librust-serde-1+derive-dev, librust-unicase-2+default-dev, librust-winnow-0.7+default-dev, libstd-rust-dev, rustc
README (full)
code>conventional::Commit
A Rust parser library for the Conventional Commit spec.
Quick Start
- Add the crate to your
Cargo.toml:
$ 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 https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/license/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.
| dir | debian/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE-APACHE |
| file | LICENSE-MIT |
| file | README.md |