koute / cargo-web

A Cargo subcommand for the client-side Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic on duplicate dependencies

Demi-Marie opened this issue · comments

If I have a crate (libp2p-core in my case) that depends on two different versions of the same crate (here rand), cargo-web panics. libp2p/rust-libp2p#1268 is an example.

I'm getting this same issue when using quicksilver, not sure which dependency is causing it.

I think the panic happens on this line

assert!( dependency.resolved_to.is_none(), "duplicate dependency" );

Could we add to the panic messsage the dependency name?