Watch
0
0
Fork
You've already forked hyperhive
0

add shared forge-client crate; hive-forge and hive-forge-notify use it

This commit is contained in:
atlas 2026-11-15 19:49:02 +01:00 • committed by mara
commit e59e41ec90

30
forge-client/Cargo.toml Normal file
View file

@ -0,0 +1,30 @@
# `forge-client` — the one place hyperhive builds a Forgejo client and
# parses a Forgejo notification. Shared by `hive-forge` (blocking CLI) and
# `hive-forge-notify` (async poller) so that forgejo-api schema drift is
# handled once.
[package]
name = "forge-client"
edition.workspace = true
version.workspace = true
readme = "README.md"
[lints]
workspace = true
[features]
# The blocking `forgejo_api::sync` client and the blocking raw reqwest
# client. Only the CLI wants these.
sync = ["forgejo-api/sync", "reqwest/blocking"]
[dependencies]
forgejo-api.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
time.workspace = true
tokio = { workspace = true, features = ["time"] }
url.workspace = true
[dev-dependencies]
serde_json.workspace = true
tokio = { workspace = true, features = ["test-util", "macros", "rt"] }