git-commit: remove dependency on git-trailers

The git-trailers crate depends on parsing logic using nom. This is a
heavy dependency for something that can be done using git2.

Remove the dependency of git-trailers in git-commit and localise the
trailer types -- using git2 to parse the trailers out of the git
commit message.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
Fintan Halpenny
2023-02-14 15:34:32 +00:00
parent 2456fcdb04
commit ab05b63614
4 changed files with 228 additions and 23 deletions
+1 -5
View File
@@ -8,7 +8,7 @@ authors = [
"Fintan Halpenny <fintan.halpenny@gmail.com>",
]
description = "A small library for parsing, displaying and creating a git commit"
keywords = ["git", "radicle"]
keywords = ["git", "git-commit", "git-trailers", "radicle"]
[dependencies]
thiserror = "1"
@@ -17,7 +17,3 @@ thiserror = "1"
version = "0.16.1"
default-features = false
features = ["vendored-libgit2"]
[dependencies.git-trailers]
version = "0.1.0"
path = "../git-trailers"