tl;dr nom has this weird opt-out flag that breaks compatibility if you depend on 2 crates with different feature flags. It's a pretty annoying bug with how Rust handles dependencies.
As a temporary solution I just bumped the nom version from 2 -> 3 and the issue went away because the other crate (procinfo) depends on nom = "0.2".
I recently ran into this problem:
https://users.rust-lang.org/t/a-dependency-compiles-on-its-own-but-does-not-compile-as-dependency-lettre-nom/18097/6
tl;dr nom has this weird opt-out flag that breaks compatibility if you depend on 2 crates with different feature flags. It's a pretty annoying bug with how Rust handles dependencies.
As a temporary solution I just bumped the
nom
version from 2 -> 3 and the issue went away because the other crate (procinfo
) depends onnom = "0.2"
.There are 2 possibilities for resolving this:
nom
dependencyThoughts?