-
|
HI, issue with these config lines getrandom = { version = "0.2", features = ["js"] } ed25519-dalek = { version = "2.0", features = ["getrandom"] } global config \Cargo.toml [workspace.dependencies] serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.0", features = ["full"] } # this for native builds wasm-bindgen = "0.2" getrandom = { version = "0.2", features = ["js"] } libp2p-websocket-websys = { path = "../rust-libp2p/transports/websocket-websys" } packages\core\Cargo.toml Tried different config but got Error (see below ) [dependencies] Core dependencies (work in both WASM and native)... *** Errors package failed to select a version for Caused by: package failed to select a version for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
Hi,
ed25519-dalek = { version = "2.0", features = ["rand_core"] }And then enable getrandom = { workspace = true } |
Beta Was this translation helpful? Give feedback.
-
|
after update \packages\core now is "wasm_js" and fill_inner(dest) inner_u32() inner_u64() Compiling aead v0.5.2 error[E0425]: cannot find function error[E0425]: cannot find function error[E0425]: cannot find function For more information about this error, try |
Beta Was this translation helpful? Give feedback.
-
|
Finally resolved the tokio conflict and from the info from oblique and have a compiled realese (after over 7 days!! nightmare) still not sure why getrandom v0.2.16 vs v0.2.15 on libp2p2 tree. maybe this has to do with the (*). Here is the config that could help anyone else to solve WASM integration **root cargo **package\core\Cargo WASM-specific (for browser compatibility) getrandom = { package = "getrandom", version = "0.3.4", features = ["wasm_js"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] **the config for the flag LOG Big THANKS to oblique I really appreciate your answer to allow me to solve this critical piece. |
Beta Was this translation helpful? Give feedback.
Finally resolved the tokio conflict and from the info from oblique and have a compiled realese (after over 7 days!! nightmare)
still not sure why getrandom v0.2.16 vs v0.2.15 on libp2p2 tree. maybe this has to do with the (*).
Here is the config that could help anyone else to solve WASM integration
**root cargo
getrandom = { version = "0.3.4"}
getrandom_02 = { version = "0.2.16"}
ed25519-dalek = { version = "2.1.1", features = ["rand_core"] } # include 'getrandom' feature
**package\core\Cargo
getrandom = { workspace = true }
ed25519-dalek = { workspace = true }
...
WASM-specific (for browser compatibility)
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { workspace = true, f…