Skip to content

Commit c3411b9

Browse files
committed
fix clippy
1 parent 4bf016c commit c3411b9

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/torii/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ torii-cli.workspace = true
3939
torii-core.workspace = true
4040
torii-graphql.workspace = true
4141
torii-grpc = { workspace = true, features = [ "server" ] }
42-
torii-relay.workspace = true
42+
torii-relay = { workspace = true, features = [ "client", "server" ] }
4343
torii-server.workspace = true
4444
tower.workspace = true
4545

crates/torii/libp2p/Cargo.toml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,47 @@ version.workspace = true
77

88
[features]
99
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" ]
1211

1312
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1413

1514
[dependencies]
1615
futures.workspace = true
17-
rand.workspace = true
1816
serde.workspace = true
1917
# preserve order
2018
anyhow.workspace = true
21-
chrono.workspace = true
22-
dojo-types.workspace = true
23-
dojo-world.workspace = true
2419
serde_json.workspace = true
2520
starknet.workspace = true
26-
starknet-crypto.workspace = true
2721
thiserror.workspace = true
2822
torii-typed-data.workspace = true
2923
tracing.workspace = true
3024
sqlx = { workspace = true, optional = true }
3125
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 }
3232

3333
[dev-dependencies]
34+
indexmap.workspace = true
3435
katana-runner.workspace = true
3536
tempfile.workspace = true
3637
tokio.workspace = true
3738
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+
3946

4047
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
4148
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" }
4349

4450
[target.'cfg(target_arch = "wasm32")'.dependencies]
4551
libp2p = { git = "https://github.com/libp2p/rust-libp2p", features = [ "ed25519", "gossipsub", "identify", "macros", "noise", "ping", "tcp", "wasm-bindgen", "yamux" ], rev = "cdc9638" }
4652
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

Comments
 (0)