ancwrd1 / p12-keystore

Rust library to read and write PFX (PKCS#12) files
4 stars 0 forks source link

wasm support #3

Closed kesavkolla closed 3 weeks ago

kesavkolla commented 3 weeks ago

Trying to complie with target wasm32-unknown-unknown failed with the following error:

(base)  cargo build --lib --release --target wasm32-unknown-unknown
   Compiling der_derive v0.7.3
   Compiling synstructure v0.13.1
   Compiling thiserror-impl v1.0.63
   Compiling rusticata-macros v4.1.0
   Compiling displaydoc v0.2.5
   Compiling time v0.3.36
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling asn1-rs-impl v0.2.0
   Compiling zerocopy-derive v0.7.35
   Compiling wasm-bindgen-backend v0.2.93
   Compiling asn1-rs-derive v0.5.1
   Compiling getrandom v0.2.15
error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
   --> /home/kesav/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.15/src/lib.rs:342:9
    |
342 | /         compile_error!("the wasm*-unknown-unknown targets are not supported by \
343 | |                         default, you may need to enable the \"js\" feature. \
344 | |                         For more information see: \
345 | |                         https://docs.rs/getrandom/#webassembly-support");
    | |________________________________________________________________________^

error[E0433]: failed to resolve: use of undeclared crate or module `imp`
   --> /home/kesav/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.15/src/lib.rs:398:9
    |
398 |         imp::getrandom_inner(dest)?;
    |         ^^^ use of undeclared crate or module `imp`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `getrandom` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...