官术网_书友最值得收藏!

Dependencies – Cargo.lock

Here is a great quote from the cargo FAQ (https://doc.rust-lang.org/cargo/faq.html) about what the purpose of this file is and what it does:

The purpose of a Cargo.lock is to describe the state of the world at the time of a successful build. It is then used to provide deterministic builds across whatever machine is building the project by ensuring that the exact same dependencies are being compiled.

This serialized state can easily be transferred across teams or computers. Therefore, should a dependency introduce a bug with a patch update, your build should be largely unaffected unless you run cargo update. In fact, it's recommended for libraries to commit the Cargo.lock file to version control to retain a stable, working build. For debugging purposes, it's also quite handy to streamline the dependency tree.

主站蜘蛛池模板: 正阳县| 威远县| 竹山县| 乐陵市| 哈尔滨市| 游戏| 资源县| 嘉荫县| 木里| 邻水| 健康| 永福县| 桦南县| 麻江县| 当阳市| 渭源县| 六安市| 九寨沟县| 临汾市| 乌拉特中旗| 温宿县| 启东市| 丰城市| 云梦县| 金川县| 额敏县| 邵阳县| 南城县| 苏尼特右旗| 沙雅县| 乌鲁木齐市| 扎鲁特旗| 德兴市| 乌拉特前旗| 乌兰察布市| 化德县| 临城县| 五峰| 呼图壁县| 通渭县| 谷城县|