std@0.116.0/_wasm_crypto

Deno standard library
GitHub Stars
2187
Go to latest

std/_crypto_wasm is only for internal use, such as by std/crypto and std/node/crypto. Its interface may not be stable between releases and it should not be imported directly.

How to Build

Prerequisite

Requires Rust's WASM target and the wasm-bindgen CLI.

cargo build --target wasm32-unknown-unknown
rustup target add wasm32-unknown-unknown

# This must match the version in hash/_wasm/Cargo.lock:
cargo install -f wasm-bindgen-cli --version 0.2.74

Build

deno run --allow-all ./_build.ts

This will regenerate ./crypto.js and ./crypto.wasm.js from the Rust source.