-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
101 lines (93 loc) · 3.16 KB
/
Cargo.toml
File metadata and controls
101 lines (93 loc) · 3.16 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[package]
name = "iroh-docs"
version = "0.96.0"
edition = "2021"
readme = "README.md"
description = "Iroh sync"
license = "MIT/Apache-2.0"
authors = ["n0 team"]
repository = "https://github.com/n0-computer/iroh-docs"
# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.89"
[dependencies]
anyhow = "1"
async-channel = "2.3.1"
blake3 = "1.8"
bytes = { version = "1.7", features = ["serde"] }
derive_more = { version = "2.0.1", features = [
"debug",
"deref",
"display",
"from",
"from_str",
"try_into",
"into",
"as_ref",
] }
ed25519-dalek = { version = "3.0.0-pre.1", features = ["serde", "rand_core"] }
futures-buffered = "0.2.4"
futures-lite = "2.3.0"
futures-util = { version = "0.3.25" }
hex = "0.4"
iroh = { version = "0.96.1", default-features = false }
iroh-tickets = { version = "0.2" }
iroh-blobs = { version = "0.98", default-features = false }
iroh-gossip = { version = "0.96", features = ["net"], default-features = false }
iroh-metrics = { version = "0.38", default-features = false }
irpc = { version = "0.12.0", default-features = false }
n0-error = "0.1.0"
n0-future = { version = "0.3.1", features = ["serde"] }
num_enum = "0.7"
postcard = { version = "1", default-features = false, features = [
"alloc",
"use-std",
"experimental-derive",
] }
quinn = { package = "iroh-quinn", version = "0.16.0", optional = true }
rand = "0.9.2"
redb = { version = "2.6.3" }
self_cell = "1.0.3"
serde = { version = "1.0.164", features = ["derive"] }
serde-error = "0.1.3"
strum = { version = "0.26", features = ["derive"] }
tempfile = { version = "3.4" }
thiserror = "2"
tokio = { version = "1", features = ["sync", "rt", "time", "io-util"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tokio-util = { version = "0.7.12", features = ["codec", "io-util", "io", "rt"] }
tracing = "0.1"
[dev-dependencies]
data-encoding = "2.6.0"
iroh = { version = "0.96.1", features = ["test-utils"] }
nested_enum_utils = "0.2"
parking_lot = "0.12.3"
proptest = "1.2.0"
rand_chacha = "0.9"
tempfile = "3.4"
test-strategy = "0.4"
testdir = "0.7"
testresult = "0.4.1"
tokio = { version = "1", features = ["sync", "macros"] }
tracing-test = "0.2.5"
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
[features]
default = ["metrics", "rpc", "fs-store"]
metrics = ["iroh-metrics/metrics", "iroh/metrics"]
rpc = ["dep:quinn", "irpc/rpc", "iroh-blobs/rpc"]
fs-store = ["iroh-blobs/fs-store"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]
[lints.rust]
missing_debug_implementations = "warn"
# We use this --cfg for documenting the cargo features on which an API
# is available. To preview this locally use: RUSTFLAGS="--cfg
# iroh_docsrs cargo +nightly doc --all-features". We use our own
# iroh_docsrs instead of the common docsrs to avoid also enabling this
# feature in any dependencies, because some indirect dependencies
# require a feature enabled when using `--cfg docsrs` which we can not
# do. To enable for a crate set `#![cfg_attr(iroh_docsrs,
# feature(doc_cfg))]` in the crate.
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)"] }
[build-dependencies]
cfg_aliases = "0.2.1"