Skip to content

Instantly share code, notes, and snippets.

@iamsebastian

iamsebastian/log Secret

Created June 14, 2018 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamsebastian/b181e8a31a2e4798ab9eeee97f51819c to your computer and use it in GitHub Desktop.
Save iamsebastian/b181e8a31a2e4798ab9eeee97f51819c to your computer and use it in GitHub Desktop.
❯ cargo tree | ag nom
│ │ │ ├── synom v0.11.3
│ ├── nom v3.2.1
│ │ │ └── synom v0.11.3 (*)
~/Projects/macsi-rust-api develop*
❯ RUST_BACKTRACE=full cargo run
warning: An explicit [[bin]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other binary targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a binary target:
* /home/sblei/Projects/macsi-rust-api/src/bin/try_nickel_https.rs
* /home/sblei/Projects/macsi-rust-api/src/bin/multipart.rs
* /home/sblei/Projects/macsi-rust-api/src/bin/show_sectors.rs
* /home/sblei/Projects/macsi-rust-api/src/bin/update_fk_products_overview.rs
This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a binary target today. You can future-proof yourself
and disable this warning by adding `autobins = false` to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.
For more information on this warning you can consult
https://github.com/rust-lang/cargo/issues/5330
Compiling curl-sys v0.3.14
Compiling libsodium-sys v0.1.0
Compiling lettre v0.8.2
Compiling dotenv v0.13.0
Compiling nickel-jwt-session v0.10.0
error[E0432]: unresolved import `nom::simple_errors`
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/response.rs:5:10
|
5 | use nom::simple_errors::Err as NomError;
| ^^^^^^^^^^^^^ Could not find `simple_errors` in `nom`
error[E0433]: failed to resolve. Could not find `simple_errors` in `nom`
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/error.rs:40:18
|
40 | Parsing(nom::simple_errors::Err),
| ^^^^^^^^^^^^^ Could not find `simple_errors` in `nom`
error[E0433]: failed to resolve. Could not find `simple_errors` in `nom`
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/error.rs:98:16
|
98 | impl From<nom::simple_errors::Err> for Error {
| ^^^^^^^^^^^^^ Could not find `simple_errors` in `nom`
error[E0433]: failed to resolve. Could not find `simple_errors` in `nom`
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/error.rs:99:23
|
99 | fn from(err: nom::simple_errors::Err) -> Error {
| ^^^^^^^^^^^^^ Could not find `simple_errors` in `nom`
error[E0119]: conflicting implementations of trait `std::convert::From<[type error]>` for type `smtp::error::Error`:
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/error.rs:104:1
|
98 | impl From<nom::simple_errors::Err> for Error {
| -------------------------------------------- first implementation here
...
104 | impl From<Response> for Error {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `smtp::error::Error`
error[E0119]: conflicting implementations of trait `std::convert::From<[type error]>` for type `smtp::error::Error`:
--> /home/sblei/.cargo/registry/src/github.com-1ecc6299db9ec823/lettre-0.8.2/src/smtp/error.rs:114:1
|
98 | impl From<nom::simple_errors::Err> for Error {
| -------------------------------------------- first implementation here
...
114 | impl From<&'static str> for Error {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `smtp::error::Error`
error: aborting due to 6 previous errors
Some errors occurred: E0119, E0432, E0433.
For more information about an error, try `rustc --explain E0119`.
error: Could not compile `lettre`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment