@@ -7,45 +7,47 @@ version.workspace = true
7
7
8
8
[features ]
9
9
client = [ ]
10
- default = [ " client" , " server" ]
11
- server = [ " dep:sqlx" , " dep:torii-core" ]
10
+ server = [ " dep:sqlx" , " dep:torii-core" , " dep:dojo-types" , " dep:dojo-world" , " dep:starknet-crypto" , " dep:chrono" , " dep:libp2p-webrtc" , " dep:rand" ]
12
11
13
12
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14
13
15
14
[dependencies ]
16
15
futures.workspace = true
17
- rand.workspace = true
18
16
serde.workspace = true
19
17
# preserve order
20
18
anyhow.workspace = true
21
- chrono.workspace = true
22
- dojo-types.workspace = true
23
- dojo-world.workspace = true
24
19
serde_json.workspace = true
25
20
starknet.workspace = true
26
- starknet-crypto.workspace = true
27
21
thiserror.workspace = true
28
22
torii-typed-data.workspace = true
29
23
tracing.workspace = true
30
24
sqlx = { workspace = true , optional = true }
31
25
torii-core = { workspace = true , optional = true }
26
+ dojo-types = { workspace = true , optional = true }
27
+ dojo-world = { workspace = true , optional = true }
28
+ rand = { workspace = true , optional = true }
29
+ starknet-crypto = { workspace = true , optional = true }
30
+ chrono = { workspace = true , optional = true }
31
+ libp2p-webrtc = { git = " https://github.com/libp2p/rust-libp2p" , features = [ " pem" , " tokio" ], rev = " cdc9638" , optional = true }
32
32
33
33
[dev-dependencies ]
34
+ indexmap.workspace = true
34
35
katana-runner.workspace = true
35
36
tempfile.workspace = true
36
37
tokio.workspace = true
37
38
tracing-subscriber.workspace = true
38
- indexmap.workspace = true
39
+
40
+ [target .'cfg(target_arch = "wasm32")' .dev-dependencies ]
41
+ tracing-wasm = " 0.2.1"
42
+ wasm-bindgen-futures = " 0.4.40"
43
+ wasm-bindgen-test = " 0.3.40"
44
+ wasm-timer = " 0.2.5"
45
+
39
46
40
47
[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
41
48
libp2p = { git = " https://github.com/libp2p/rust-libp2p" , features = [ " dns" , " ed25519" , " gossipsub" , " identify" , " macros" , " noise" , " ping" , " quic" , " relay" , " tcp" , " tokio" , " websocket" , " yamux" ], rev = " cdc9638" }
42
- libp2p-webrtc = { git = " https://github.com/libp2p/rust-libp2p" , features = [ " pem" , " tokio" ], rev = " cdc9638" }
43
49
44
50
[target .'cfg(target_arch = "wasm32")' .dependencies ]
45
51
libp2p = { git = " https://github.com/libp2p/rust-libp2p" , features = [ " ed25519" , " gossipsub" , " identify" , " macros" , " noise" , " ping" , " tcp" , " wasm-bindgen" , " yamux" ], rev = " cdc9638" }
46
52
libp2p-webrtc-websys = { git = " https://github.com/libp2p/rust-libp2p" , rev = " cdc9638" }
47
- libp2p-websocket-websys = { git = " https://github.com/libp2p/rust-libp2p" , rev = " cdc9638" }
48
- tracing-wasm = " 0.2.1"
49
- wasm-bindgen-futures = " 0.4.40"
50
- wasm-bindgen-test = " 0.3.40"
51
- wasm-timer = " 0.2.5"
53
+ libp2p-websocket-websys = { git = " https://github.com/libp2p/rust-libp2p" , rev = " cdc9638" }
0 commit comments