@@ -25,13 +25,8 @@ backoff = "0.4.0"
2525ed25519-dalek = { version = " 2.2.0" , features = [" rand_core" ] }
2626fraction = { version = " 0.15.1" , default-features = false }
2727futures-core = " 0.3.31"
28- # Transitive dependency of tonic 0.12
29- h2 = " 0.4.12"
30- hedera-proto = { path = " ./protobufs" , version = " 0.19.0" , features = [" time_0_3" , " fraction" ] }
3128hex = " 0.4.3"
3229hmac = " 0.12.1"
33- # Dependency of tonic 0.12
34- hyper = { version = " 1.6" , default-features = false }
3530log = " 0.4.28"
3631num-bigint = " 0.4.3"
3732once_cell = " 1.21.3"
@@ -41,8 +36,6 @@ sha2 = "0.10.9"
4136sha3 = " 0.10.2"
4237thiserror = " 2.0.15"
4338time = " 0.3.43"
44- tokio = { version = " 1.47.0" , features = [" time" ] }
45- tonic = " 0.12.3"
4639tinystr = { version = " 0.7.0" , default-features = false }
4740arc-swap = " 1.6.0"
4841rlp = " 0.6.1"
@@ -58,10 +51,6 @@ cbc = "0.1.2"
5851aes = " 0.8.3"
5952md5 = " 0.8.0"
6053sec1 = { version = " 0.7.3" , features = [" der" ] }
61- tower = { version = " 0.5.2" , features = [" util" ] }
62- openssl = " 0.10.72"
63- hyper-util = " 0.1.16"
64- hyper-openssl = {version = " 0.10.2" , features = [" client-legacy" ]}
6554
6655[dependencies .futures-util ]
6756version = " 0.3.31"
@@ -92,6 +81,26 @@ version = "0.1.14"
9281default-features = false
9382features = [" std" , " arc-swap" , " unsize" ]
9483
84+ # Native-only dependencies (networking)
85+ [target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
86+ hedera-proto = { path = " ./protobufs" , version = " 0.19.0" , features = [" time_0_3" , " fraction" ] }
87+ tonic = " 0.12.3"
88+ tokio = { version = " 1.47.0" , features = [" time" ] }
89+ h2 = " 0.4.12"
90+ hyper = { version = " 1.6" , default-features = false }
91+ tower = { version = " 0.5.2" , features = [" util" ] }
92+ openssl = " 0.10.72"
93+ hyper-util = " 0.1.16"
94+ hyper-openssl = {version = " 0.10.2" , features = [" client-legacy" ]}
95+
96+ # WASM-only dependencies (no networking)
97+ [target .'cfg(target_arch = "wasm32")' .dependencies ]
98+ hedera-proto-wasm = { path = " ./hedera-proto-wasm" }
99+ wasm-bindgen = " 0.2"
100+ js-sys = " 0.3"
101+ web-sys = { version = " 0.3" , features = [" console" ] }
102+ getrandom = { version = " 0.2" , features = [" js" ] }
103+
95104[dev-dependencies ]
96105anyhow = " 1.0.99"
97106assert_matches = " 1.5.0"
0 commit comments