blahrs/blahd/Cargo.toml
oxalica 40e4a53886
Some checks failed
CI / Code style (push) Has been cancelled
CI / Test beta (push) Has been cancelled
CI / Test stable (push) Has been cancelled
CI / Flake package (push) Has been cancelled
Deploy OpenAPI doc to Pages / deploy (push) Has been cancelled
build(deps): update to rand 0.9 is possible
Except for code using ed25519-dalek, since we are blocked by them.

Also tweak RNG source so only key generation uses `OsRng`. PoW nonce
generation only need unpredictability thus `ThreadRng` suffices.

See: https://github.com/dalek-cryptography/curve25519-dalek/issues/731
2025-04-15 20:28:09 -04:00

70 lines
1.9 KiB
TOML

[package]
name = "blahd"
version = "0.0.0"
edition = "2024"
[features]
default = []
unsafe_use_mock_instant_for_testing = ["dep:mock_instant", "blah-types/unsafe_use_mock_instant_for_testing"]
[dependencies]
anyhow = "1"
axum = { version = "0.8", features = ["ws"] }
axum-extra = "0.10"
clap = { version = "4", features = ["derive"] }
data-encoding = "2"
ed25519-dalek = "2"
futures-util = "0.3"
html-escape = "0.2"
http-body-util = "0.1"
humantime = "2"
parking_lot = "0.12" # Maybe no better performance, just that we hate poisoning. ¯\_(ツ)_/¯
paste = "1.0.15"
rand = "0.9"
reqwest = "0.12"
rusqlite = { version = "0.34", features = ["rusqlite-macros"] }
rustix = { version = "1", features = ["net"] }
sd-notify = "0.4"
serde = { version = "1", features = ["derive"] }
serde-constant = "0.1"
serde-inline-default = "0.2"
serde_jcs = "0.1"
serde_json = { version = "1", features = ["raw_value"] }
serde_urlencoded = "0.7"
sha2 = "0.10"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
tokio-stream = { version = "0.1", features = ["sync"] }
toml = "0.8"
tower-http = { version = "0.6", features = ["cors", "limit", "set-header"] }
tracing = "0.1"
tracing-subscriber = "0.3"
url = { version = "2", features = ["serde"] }
blah-types = { path = "../blah-types", features = ["rusqlite"] }
[dependencies.mock_instant]
version = "0.5"
optional = true
[build-dependencies]
url = "2"
[dev-dependencies]
expect-test = "1"
hyper = { version = "1", features = ["client", "http1"] }
hyper-util = { version = "0.1", features = ["tokio"] }
libc = "0.2"
libtest-mimic = "0.8"
reqwest = { version = "0.12", features = ["json"] }
rstest = { version = "0.24", default-features = false }
rustix = { version = "1", features = ["process"] }
tempfile = "3"
tokio-tungstenite = "0.26"
[[test]]
name = "socket_activate"
harness = false
[lints]
workspace = true