@@ -70,8 +70,19 @@ tokio-util = { version = "0.7.12", optional = true, features = ["codec"] }
70
70
tracing = " 0.1"
71
71
data-encoding = { version = " 2.6.0" , optional = true }
72
72
thiserror = { version = " 2.0" , optional = true }
73
- irpc = { git = " https://github.com/n0-computer/irpc" , branch = " Frando/wasm" }
74
- irpc-derive = { git = " https://github.com/n0-computer/irpc" , branch = " Frando/wasm" }
73
+ irpc = { git = " https://github.com/n0-computer/irpc" , optional = true , default-features = false , features = [
74
+ " stream" ,
75
+ " message_spans" ,
76
+ ] }
77
+ irpc-derive = { git = " https://github.com/n0-computer/irpc" , optional = true }
78
+ # irpc = { path = "../irpc", optional = true, default-features = false, features = [
79
+ # "stream",
80
+ # "message_spans",
81
+ # ] }
82
+ # irpc-derive = { path = "../irpc/irpc-derive", optional = true }
83
+
84
+ # rpc dependencies
85
+ quinn = { package = " iroh-quinn" , version = " 0.13.0" , optional = true }
75
86
76
87
# test-utils dependencies (optional)
77
88
rand_chacha = { version = " 0.3.1" , optional = true }
@@ -87,6 +98,7 @@ serde_json = { version = "1", optional = true }
87
98
rayon = { version = " 1.10.0" , optional = true }
88
99
comfy-table = { version = " 7.1.4" , optional = true }
89
100
101
+
90
102
[dev-dependencies ]
91
103
tokio = { version = " 1" , features = [
92
104
" io-util" ,
@@ -111,6 +123,8 @@ url = "2.4.0"
111
123
[features ]
112
124
default = [" net" ]
113
125
net = [
126
+ " dep:irpc" ,
127
+ " dep:irpc-derive" ,
114
128
" dep:futures-lite" ,
115
129
" dep:iroh" ,
116
130
" dep:tokio" ,
@@ -121,6 +135,7 @@ net = [
121
135
" dep:anyhow" ,
122
136
" dep:thiserror" ,
123
137
]
138
+ rpc = [" net" , " dep:quinn" , " irpc/rpc" , " irpc/quinn_endpoint_setup" ]
124
139
test-utils = [" dep:rand_chacha" , " dep:humantime-serde" ]
125
140
simulator = [
126
141
" test-utils" ,
@@ -132,6 +147,7 @@ simulator = [
132
147
" dep:comfy-table" ,
133
148
]
134
149
examples = [" net" , " dep:data-encoding" ]
150
+ quinn = [" dep:quinn" ]
135
151
136
152
[[test ]]
137
153
name = " sim"
@@ -158,4 +174,4 @@ rustdoc-args = ["--cfg", "iroh_docsrs"]
158
174
debug = true
159
175
160
176
[profile .release ]
161
- debug = true
177
+ debug = true
0 commit comments