nanne007 / notes

see issue lists for further discusses
https://github.com/lerencao/notes/issues
9 stars 2 forks source link

cargo: dependency hell #104

Open nanne007 opened 5 years ago

nanne007 commented 5 years ago

博文:https://stephencoakley.com/2019/04/24/how-rust-solved-dependency-hell

rust 对 symbol 的处理:https://github.com/rust-lang/rust/blob/0550766699a6602a51e361e8cb2825b540b7cce8/src/librustc_codegen_utils/symbol_names.rs

初步理解:

  1. 依赖的多个版本的 crate,如果是兼容的(TODO: 兼容性定义),cargo 会使用最新版本的。
  2. 如果不兼容,会报错?