@@ -16,92 +16,44 @@ rust-version = "1.76"
16
16
workspace = true
17
17
18
18
[dependencies ]
19
- anyhow = { version = " 1" }
20
- async-channel = " 2.3.1"
21
- bytes = " 1.7"
22
- derive_more = { version = " 1.0.0" , features = [
23
- " debug" ,
24
- " display" ,
25
- " from" ,
26
- " try_into" ,
27
- " from_str" ,
28
- ] }
29
- futures-lite = " 2.5"
30
- futures-util = " 0.3"
31
19
iroh-base = { version = " 0.28.0" , features = [" key" ] }
32
- iroh-io = { version = " 0.6.0" , features = [" stats" ] }
33
- iroh-metrics = { version = " 0.28.0" , optional = true }
34
- iroh-net = { version = " 0.28.1" , features = [" discovery-local-network" ] }
35
- iroh-node-util = { version = " 0.28.0" , path = " ../iroh-node-util" }
20
+ iroh-net = { version = " 0.28.1" , default-features = false }
36
21
iroh-router = { version = " 0.28.0" }
37
- nested_enum_utils = " 0.1.0"
38
- num_cpus = { version = " 1.15.0" }
39
- parking_lot = " 0.12.1"
40
- postcard = { version = " 1" , default-features = false , features = [
41
- " alloc" ,
42
- " use-std" ,
43
- " experimental-derive" ,
44
- ] }
45
- quic-rpc = { version = " 0.15" , default-features = false , features = [
46
- " flume-transport" ,
47
- " quinn-transport" ,
48
- ] }
49
- quic-rpc-derive = { version = " 0.15" }
50
- quinn = { package = " iroh-quinn" , version = " 0.12" }
51
- serde = { version = " 1" , features = [" derive" ] }
52
- strum = { version = " 0.26" , features = [" derive" ] }
53
- thiserror = " 2"
54
- tempfile = " 3.4"
55
- tokio = { version = " 1" , features = [" io-util" , " rt" ] }
56
- tokio-util = { version = " 0.7" , features = [" codec" , " io-util" , " io" , " time" ] }
57
- tracing = " 0.1"
58
- iroh-relay = { version = " 0.28" , path = " ../iroh-relay" }
59
- ref-cast = " 1.0.23"
60
22
61
23
# Examples
24
+ anyhow = { version = " 1" , optional = true }
62
25
clap = { version = " 4" , features = [" derive" ], optional = true }
63
26
indicatif = { version = " 0.17" , features = [" tokio" ], optional = true }
64
27
parse-size = { version = " =1.0.0" , optional = true } # pinned version to avoid bumping msrv to 1.81
28
+ tokio = { version = " 1" , features = [" full" ], optional = true }
29
+ tracing-subscriber = { version = " 0.3" , features = [" env-filter" ], optional = true }
30
+ futures-lite = { version = " 2.5" , optional = true }
31
+ tracing = { version = " 0.1" , optional = true }
32
+ bytes = { version = " 1.8" , optional = true }
65
33
66
- # Documentation tests
67
- url = { version = " 2.5" , features = [" serde" ] }
68
- serde-error = " 0.1.3"
69
34
70
35
[features ]
71
- default = [" metrics" ]
72
- metrics = [" iroh-metrics" ]
73
- test = []
36
+ default = [" metrics" , " discovery-pkarr-dht " ]
37
+ metrics = [" iroh-net/ metrics" ]
38
+ discovery-local-network = [" iroh-net/discovery-local-network " ]
74
39
discovery-pkarr-dht = [" iroh-net/discovery-pkarr-dht" ]
75
- test-utils = [" iroh-net/test-utils" ]
76
40
77
- examples = [" dep:clap" , " dep:indicatif" , " dep:parse-size" ]
78
-
79
- [dev-dependencies ]
80
- anyhow = { version = " 1" }
81
- bao-tree = { version = " 0.13" , features = [" tokio_fsm" ] }
82
- futures-buffered = " 0.2.4"
83
- genawaiter = { version = " 0.99" , features = [" futures03" ] }
84
- iroh = { path = " ." , features = [" test-utils" ] }
85
- iroh-test = " 0.28.0"
86
- proptest = " 1.2.0"
87
- rand = " 0.8"
88
- rand_chacha = " 0.3.1"
89
- regex = { version = " 1.7.1" , features = [" std" ] }
90
- serde_json = " 1"
91
- testdir = " 0.9.1"
92
- testresult = " 0.4.0"
93
- tokio = { version = " 1" , features = [" macros" , " io-util" , " rt" ] }
94
- tokio-stream = " 0.1"
95
- tracing-subscriber = { version = " 0.3" , features = [" env-filter" ] }
41
+ examples = [
42
+ " dep:anyhow" ,
43
+ " dep:clap" ,
44
+ " dep:indicatif" ,
45
+ " dep:parse-size" ,
46
+ " dep:tokio" ,
47
+ " dep:tracing-subscriber" ,
48
+ " dep:futures-lite" ,
49
+ " dep:tracing" ,
50
+ " dep:bytes" ,
51
+ ]
96
52
97
53
[package .metadata .docs .rs ]
98
54
all-features = true
99
55
rustdoc-args = [" --cfg" , " iroh_docsrs" ]
100
56
101
- [[example ]]
102
- name = " rpc"
103
- required-features = [" examples" ]
104
-
105
57
[[example ]]
106
58
name = " transfer"
107
59
required-features = [" examples" ]
0 commit comments