When starting cargo build :
error: multiple matching crates for `url`
He then lists the candidates:
./target/deps/liburl-11a95471847b9e04.rlib/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liburl-4e7c5e5c.{so,rlib}
... and then interrupted because it cannot decide which one.
src/http/lib.rs:18:1: 18:18 error: can't find crate for `url` src/http/lib.rs:18 extern crate url; ^~~~~~~~~~~~~~~~~ error: aborting due to 2 previous errors
How to get around this or fix this problem?
Note:
This issue and commit seem to be related to the problem, from the comments:
+
Installation Features:
$ rustc -v rustc 0.12.0-pre-nightly (7a25cf3f3 2014-07-30 17:06:18 +0000) $ cargo -V 0.0.1-pre-nightly (4a69ffa 2014-07-29 21:30:40 +0000)
Cargo.toml :
[package] name = "nickel-demo" version = "0.1.0" authors = [ " your-name@gmail.com " ] [[bin]] name = "nickel-demo" path = "src/main.rs" [dependencies.nickel] git = "https://github.com/nickel-org/nickel.rs.git" [dependencies.rust-postgres] git = "https://github.com/sfackler/rust-postgres.git"
(copied from http://nickel.rs/getting-started.html and added one additional dependency)
The full error I get is this:
Compiling rust-postgres v0.0.0 (https://github.com/sfackler/rust-postgres.git
rust rust-cargo rust-crates
bojangle
source share