DaGenix / rust-crypto

A (mostly) pure-Rust implementation of various cryptographic algorithms.
Apache License 2.0
1.4k stars 297 forks source link

error: could not compile `rustc-serialize`. #458

Open kstwoak opened 5 years ago

kstwoak commented 5 years ago

panda@panda-virtual-machine:~/rust/wasm/hello$ wasm-pack build [INFO]: Checking for the Wasm target... [INFO]: Compiling to Wasm... Compiling autocfg v0.1.7 Compiling rustc-serialize v0.3.24 Compiling wasm-bindgen-macro-support v0.2.54 error[E0046]: not all trait items implemented, missing: encode --> /home/panda/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rustc-serialize-0.3.24/src/serialize.rs:1358:1 | 853 | fn encode(&self, s: &mut S) -> Result<(), S::Error>; | ---------------------------------------------------------------- encode from trait ... 1358 | impl Encodable for path::Path { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing encode in implementation

error[E0046]: not all trait items implemented, missing: decode --> /home/panda/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rustc-serialize-0.3.24/src/serialize.rs:1382:1 | 904 | fn decode(d: &mut D) -> Result<Self, D::Error>; | ----------------------------------------------------------- decode from trait ... 1382 | impl Decodable for path::PathBuf { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing decode in implementation

Compiling num-traits v0.2.8 Compiling num-integer v0.1.41 error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0046. error: could not compile rustc-serialize. warning: build failed, waiting for other jobs to finish... error: build failed Error: Compiling your crate to WebAssembly failed Caused by: failed to execute cargo build: exited with exit code: 101

newpavlov commented 5 years ago

This project is unmaintained and effectively deprecated. If you look for a pure Rust implementation of cryptographic algorithms, take a look for example at RustCrypto crates.