briansmith / ring

Safe, fast, small crypto using Rust
Other
3.69k stars 697 forks source link

Documentation: Special considerations for wasm32 #1921

Open briansmith opened 8 months ago

briansmith commented 8 months ago

We should document:

Libraries that want to work similarly should consider providing a similar feature flag to the library that triggers the wasm32_unknown_unknown_js feature, like this:

#[features]
wasm32_unknown_unknown_js = ["ring/wasm32_unknown_unknown_js"];

Alternatively, the application can always ask for the feature to be enabled itself, even if it doesn't otherwise directly use ring:

[dependencies]
ring = { version = "0.17.7", features = ["wasm32_unknown_unknown_js"] }