Hacker News new | ask | show | jobs
by WD-42 665 days ago
This isn’t a magic bullet. Using multiple versions of the same crate can still blow up your project.

For example, the compiler error in this example:

note: perhaps two different versions of crate `smithay_client_toolkit` are being used?

https://github.com/pop-os/launcher/issues/237

1 comments

Ah, I was wondering what would happen if you're using a type from lib-v2 and an intermediary library passes you that type from lib-v1, and the type has changed internally. Good to know the Rust compiler is set up to catch that.

(I've seen cases where that happens with C and C++ software, and things seem to compile and run... until everything explodes. Fun times.)