Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not compile rustc-serialize. #458

Open
kstwoak opened this issue Nov 8, 2019 · 1 comment
Open

error: could not compile rustc-serialize. #458

kstwoak opened this issue Nov 8, 2019 · 1 comment

Comments

@kstwoak
Copy link

kstwoak commented Nov 8, 2019

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<S: Encoder>(&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: Decoder>(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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants