rust-crypto icon indicating copy to clipboard operation
rust-crypto copied to clipboard

I can't compile

Open AlscadIngenierie opened this issue 5 years ago • 1 comments

error[E0046]: not all trait items implemented, missing: `encode`
    --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/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/user/.cargo/registry/src/github.com-1ecc6299db9ec823/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

AlscadIngenierie avatar Jan 30 '19 21:01 AlscadIngenierie

I had a similar problem, os=win7 64bit,: error: failed to run custom build command for rust-crypto v0.2.36 process didn't exit successfully: E:\code\rust\hello\target\debug\build\rust-crypto-381e1f5a94ff2bec\build-script-build (exit code: 101) --- stdout TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("0") TARGET = Some("x86_64-pc-windows-gnu") TARGET = Some("x86_64-pc-windows-gnu") HOST = Some("x86_64-pc-windows-gnu") CFLAGS_x86_64-pc-windows-gnu = None CFLAGS_x86_64_pc_windows_gnu = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-Wall" "-Wextra" "-o" "E:\code\rust\hello\target\debug\build\rust-crypto-dca8f45881417d38\out\src\util_helpers.o" "-c" "src/util_helpers.c"

--- stderr thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is cc installed? (see https://github.com/alexcrichton/gcc-rs#compile-time-requirements for help)

', D:\Program\cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\gcc-0.3.55\src\lib.rs:1672:5 note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish... error: build failed

zydxhs avatar Jul 31 '19 03:07 zydxhs