Search code examples
rustrust-cargorust-crates

Where can a dependency be specified if not in Cargo.toml?


I'm looking at the ring crate. In its Dependencies tab I see there is a dependency to the web-sys crate. But in ring's Cargo.toml I don't see web-sys mentioned anywhere. So where does that dependency come from?


Solution

  • You're comparing apples to oranges. You're seeing the dependencies of version 0.16.20 and comparing that with the current Cargo.toml even when there are nearly two years of difference between them.

    If you look at the repository at the 0.16.20 release, you'll see that Cargo.toml does have a web-sys dependency: https://github.com/briansmith/ring/tree/9cc0d45f4d8521f467bb3a621e74b1535e118188