omerbenamram / evtx

A Fast (and safe) parser for the Windows XML Event Log (EVTX) format
Apache License 2.0
636 stars 61 forks source link

Compilation fails with "error[E0603]: module `export` is private" #170

Closed janstarke closed 3 years ago

janstarke commented 3 years ago

It seems that there is some interference with serde-1.0.123

Environment

$ cargo --version
cargo 1.49.0 (d00d64df9 2020-12-05)

$ uname -v
Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64

Command

cargo install evtx

Error Message

   Compiling evtx v0.6.8
error[E0603]: module `export` is private
   --> /Users/jasa/.cargo/registry/src/github.com-1ecc6299db9ec823/evtx-0.6.8/src/binxml/name.rs:11:12
    |
11  | use serde::export::Formatter;
    |            ^^^^^^ private module
    |
note: the module `export` is defined here
   --> /Users/jasa/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.123/src/lib.rs:275:5
    |
275 | use self::__private as export;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0603]: module `export` is private
   --> /Users/jasa/.cargo/registry/src/github.com-1ecc6299db9ec823/evtx-0.6.8/src/model/deserialized.rs:5:12
    |
5   | use serde::export::Formatter;
    |            ^^^^^^ private module
    |
note: the module `export` is defined here
   --> /Users/jasa/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.123/src/lib.rs:275:5
    |
275 | use self::__private as export;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0603`.
error: failed to compile `evtx v0.6.8`, intermediate artifacts can be found at `/var/folders/0d/tjq7d2vn3nl19k00k4_gpzyr1q_6wx/T/cargo-installdk40ap`

Caused by:
  could not compile `evtx`

To learn more, run the command again with --verbose.
omerbenamram commented 3 years ago

Thanks for this. I've released a patch addressing this :) Please try 0.6.9