Skip to content

Dependency error on cargo doc / cargo run #124

@emmajane1313

Description

@emmajane1313

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions