Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (59 loc) · 2.41 KB
/
Copy pathCargo.toml
File metadata and controls
67 lines (59 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "darkbio-wire"
version = "0.18.0"
authors = ["Péter Szilágyi <peter@dark.bio>"]
description = "Encrypted protocol between Ark and host"
repository = "https://github.com/dark-bio/wire-rs"
documentation = "https://docs.rs/darkbio-wire"
categories = ["network-programming", "encoding"]
keywords = ["ark", "dark-bio", "transport", "protobuf"]
license = "BSD-3-Clause"
edition = "2024"
rust-version = "1.95"
exclude = ["vectors/"] # Replay transcripts feed only the tests, no reason to ship them
autobenches = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(coverage_nightly)", 'cfg(getrandom_backend, values("custom"))'] }
[features]
default = []
bench = ["dep:criterion", "dep:sysinfo"]
fuzz = ["darkbio-clock/test-clock", "dep:arbitrary", "dep:base64", "dep:getrandom", "dep:rand_chacha", "dep:serde_json", "dep:sha2", "dep:strum"]
[dependencies]
arbitrary = { version = "1", features = ["derive"], optional = true }
base64 = { version = "0.23", optional = true }
criterion = { version = "0.8", optional = true }
darkbio-clock = "0.4"
darkbio-cobs = "1"
darkbio-crypto = { version = "0.20.1", features = ["cbor", "cose", "cwt", "xdsa", "xhpke"] }
darkbio-trust = "0.7.1"
getrandom = { version = "0.4", optional = true }
memchr = "2"
prost = "0.14"
rand_chacha = { version = "0.10", optional = true }
serde_json = { version = "1", optional = true }
sha2 = { version = "0.11", optional = true }
strum = { version = "0.28", features = ["derive"], optional = true }
sysinfo = { version = "0.39", optional = true }
thiserror = "2.0"
tracing = "0.1.40" # Keep >= 0.1.40, fixes Instrumented use-after-free (RUSTSEC-2023-0078)
[dev-dependencies]
base64 = "0.23"
darkbio-clock = { version = "0.4", features = ["test-clock", "crossbeam"] }
rand = "0.10.2" # Keep >= 0.10.1, fixes rng logger unsoundness (RUSTSEC-2026-0097)
serde_json = "1"
strum = { version = "0.28", features = ["derive"] }
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] } # Keep >= 0.3.20, fixes ANSI escape injection (RUSTSEC-2025-0055)
[lib]
bench = false
[[bench]]
name = "main"
harness = false
required-features = ["bench"]
# The tests push megabytes through the crypto, which crawls unoptimized, so the
# dependencies build optimized under the dev profile too. The crate itself stays
# unoptimized for debugging.
[profile.dev.package."*"]
opt-level = 2