Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency error on cargo doc / cargo run #124

Open
emmajane1313 opened this issue Dec 25, 2022 · 1 comment
Open

Dependency error on cargo doc / cargo run #124

emmajane1313 opened this issue Dec 25, 2022 · 1 comment

Comments

@emmajane1313
Copy link

Getting this error when running cargo run / cargo doc on compiling/building dependencies for both a new cargo new project and adding the dependency to previous projects

error[E0277]: the trait bound `cid::Error: std::error::Error` is not satisfied
  --> /Users/devdesign/.cargo/registry/src/github.com-1ecc6299db9ec823/multiaddr-0.3.1/src/errors.rs:50:29
   |
50 |         Error::ParsingError(err.into())
   |                             ^^^ ---- required by a bound introduced by this call
   |                             |
   |                             the trait `std::error::Error` is not implemented for `cid::Error`
   |
   = note: required for `Box<dyn std::error::Error + Send + Sync>` to implement `From<cid::Error>`
   = note: required for `cid::Error` to implement `Into<Box<dyn std::error::Error + Send + Sync>>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `multiaddr` due to previous error
warning: build failed, waiting for other jobs to finish...

Rust version: 1.66

toml file:
[dependencies]
fltk = "1.3.25"
tokio = { version = "1", features = ["full"] }
serde = "1.0.150"
futures = "0.3"
dotenv = "0.15.0"
num-integer = "0.1.45"

[dependencies.mongodb]
version = "2.3.0"
default-features = false
features = ["async-std-runtime"]

@iamjpotts
Copy link
Contributor

Do you get this error when taking on multiaddr 0.3.1 as a dependency but not taking on any of the rust-ipfs-api crates as a dependency?

If not, can you post a minimum but complete example that reproduces the error, either as a gist or as a public git repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants