feat: add `git-ents` library crate
commit
7365e0dfeat: add `git-ents` library crate
Introduces a library target to the workspace so doctests have something to run against, and registers it for releases and deployment.
feat: add git-ents library crate with a doctest
chore: add git-ents to the workspace members
chore: register git-ents in release-please config and manifest
ci: trigger CD on crates/git-ents changes
Assisted-by: Claude:claude-opus-4-8
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
Cargo.lock
@@ -108,6 +108,10 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
+[[package]]
+name = "git-ents"
+version = "0.0.0"
+
[[package]]
name = "git-ents-server"
version = "0.0.0"
Cargo.toml
@@ -1,6 +1,6 @@
[workspace]
resolver = "3"
-members = ["crates/git-ents-server"]
+members = ["crates/git-ents", "crates/git-ents-server"]
[workspace.package]
edition = "2024"
.config/release-please-config.json
@@ -9,6 +9,7 @@
"draft-pull-request": true,
"pull-request-footer": "This release was generated with [Release Please](https://github.com/googleapis/release-please).",
"packages": {
+ "crates/git-ents": {},
"crates/git-ents-server": {}
},
"plugins": [{ "type": "sentence-case" }, { "type": "cargo-workspace" }],
.config/release-please-manifest.json
@@ -1,3 +1,4 @@
{
+ "crates/git-ents": "0.0.0",
"crates/git-ents-server": "0.0.0"
}
.github/workflows/CD.yml
@@ -5,6 +5,7 @@
branches:
- main
paths:
+ - "crates/git-ents/**"
- "crates/git-ents-server/**"
- ".config/fly.toml"
- "Cargo.toml"
crates/git-ents/Cargo.toml
@@ -1,0 +1,9 @@
+[package]
+name = "git-ents"
+version = "0.0.0"
+edition.workspace = true
+publish.workspace = true
+license.workspace = true
+
+[lints]
+workspace = true
crates/git-ents/src/lib.rs
@@ -1,0 +1,13 @@
+//! Git Ents — helpful guardians of your git trees.
+
+/// Returns the tagline describing what the ents do.
+///
+/// # Examples
+///
+/// ```
+/// assert_eq!(git_ents::tagline(), "Helpful guardians of your git trees.");
+/// ```
+#[must_use]
+pub fn tagline() -> &'static str {
+ "Helpful guardians of your git trees."
+}