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
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.
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:(&self, s: &mut S) -> Result<(), S::Error>;
| ----------------------------------------------------------------
encode
--> /home/panda/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rustc-serialize-0.3.24/src/serialize.rs:1358:1 | 853 | fn encodeencode
from trait ... 1358 | impl Encodable for path::Path { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missingencode
in implementationerror[E0046]: not all trait items implemented, missing:(d: &mut D) -> Result<Self, D::Error>;
| -----------------------------------------------------------
decode
--> /home/panda/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rustc-serialize-0.3.24/src/serialize.rs:1382:1 | 904 | fn decodedecode
from trait ... 1382 | impl Decodable for path::PathBuf { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missingdecode
in implementationCompiling 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 compilerustc-serialize
. warning: build failed, waiting for other jobs to finish... error: build failed Error: Compiling your crate to WebAssembly failed Caused by: failed to executecargo build
: exited with exit code: 101