You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build fails with wasm-bindgen feature in rand crate #682
@stevebob would you be able to put together a minimal test crate for rand + wasm-bindgen? Currently we can only test builds. It would be good to add full integration testing, e.g. as a crate under the tests dir.
so far, are there any good solution, I am facing the same issues Compiling rand_os v0.1.3 error[E0463]: can't find crate for wasm_bindgen --> /home/xxx/cargo/registry/src/github.com-1ecc6299db9ec823/rand_os-0.1.3/src/lib.rs:138:1 | 138 | extern crate wasm_bindgen; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate@stevebob, @dhardy
The problem is that I want to use "rand04_compat" package. But "rand04_compat" package does not support Rand 0.7, and I have to back to back to rand 0.6, but rand 0.6 has the above issues. It made me in a dilemma.
Activity
dhardy commentedon Jan 6, 2019
I see; the
__wbg_shimsis in the wrong crate.Fix rust-random#682: move __wbg_shims module into rand_os
dhardy commentedon Jan 8, 2019
@stevebob would you be able to put together a minimal test crate for rand + wasm-bindgen? Currently we can only test builds. It would be good to add full integration testing, e.g. as a crate under the
testsdir.Merge pull request #686 from dhardy/master
gridbugs commentedon Jan 8, 2019
Will do!
rjgeek commentedon Jan 4, 2020
so far, are there any good solution, I am facing the same issues
Compiling rand_os v0.1.3 error[E0463]: can't find crate forwasm_bindgen--> /home/xxx/cargo/registry/src/github.com-1ecc6299db9ec823/rand_os-0.1.3/src/lib.rs:138:1 | 138 | extern crate wasm_bindgen; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate@stevebob, @dhardydhardy commentedon Jan 4, 2020
@rjgeek I think a new issue would be appropriate; this one's quite old. When you do, post the output of
cargo treeinstall from here.rjgeek commentedon Jan 5, 2020
@dhardy thank you for your kindly response. The output of cargo tree is shown as follows.
It would be nicer if you can give me more guide
dhardy commentedon Jan 5, 2020
As I said, a new issue please. It's not the same cause.
Upgrading to Rand 0.7 may fix it; that said we should try to support version 0.6 too.
rjgeek commentedon Jan 7, 2020
The problem is that I want to use "rand04_compat" package. But "rand04_compat" package does not support Rand 0.7, and I have to back to back to rand 0.6, but rand 0.6 has the above issues. It made me in a dilemma.
dhardy commentedon Jan 7, 2020
Create a new issue please.
If you can reproduce with a small test crate that would be best.