Dependency error on cargo doc / cargo run
emmajane1313 opened this issue · 1 comments
emmajane1313 commented
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 commented
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?