Repository navigation
Replies: 1 comment
|
Sorry for the very slow reply. Proper WebAssembly support was added only recently, and yes, dryoc now works in the browser with the current 2.0 release. The compile error you hit was caused by the Argon2 maximum memory-limit constants ( With dryoc 2.0, you only need: [dependencies]
dryoc = "2"cargo build --target wasm32-unknown-unknownOn You can also compile in WebAssembly SIMD ( RUSTFLAGS=-Ctarget-feature=+simd128 cargo build --target wasm32-unknown-unknownWebAssembly has no runtime CPU feature detection, so this is chosen at compile time: without the flag the build uses dryoc's portable code, and a One API caveat: CI runs the test suite on |
Uh oh!
There was an error while loading. Please reload this page.
Add this to Cargo.toml
Then compile to wasm by:
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo build --target wasm32-unknown-unknownError ocurs:
All reactions