These are chat archives for rust-lang/rust
How to wrap
#[macro_use] extern crate somecrate;
vec![1, 2, 3]but it seems VecDeque doesn't have such a macro?
@tikue the relevant Cargo issue is rust-lang/cargo#2064.
It is not implemented yet, so there's no ideal solution currently. You can expose your dependencies, but then the consumer of your library may end up with two versions of your dependency, which would not interoperate with each other. You can wrap all your dependencies, but this means more code in your crate, more code in the consumer's crate and potential runtime overhead because of marshalling effectively the same types back and forth.