add shared forge-client crate; hive-forge and hive-forge-notify use it
This commit is contained in:
parent
687683a4f0
commit
e59e41ec90
1 changed files with 502 additions and 214 deletions
30
forge-client/Cargo.toml
Normal file
30
forge-client/Cargo.toml
Normal 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"] }
|
||||
Loading…
Reference in a new issue