Quick Start
-
Add the crate to your
Cargo.toml
:cargo install cargo-edit cargo add conventional
-
Import the
Commit
type and theSimple
trait to parse a commit string, and query its different components as string slices:use ; let commit = new.unwrap; assert_eq!; assert_eq!; assert_eq!; assert_eq!;
-
Upgrade to
Typed
components for strongly typed access:use ; let commit = new.unwrap; assert_eq!;
-
Check out tools like Jilu for an example of library usage.