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

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.

主站蜘蛛池模板: 苍梧县| 交口县| 盐山县| 大悟县| 保康县| 揭阳市| 泸溪县| 金寨县| 建水县| 赤壁市| 鄂托克前旗| 临朐县| 灯塔市| 景泰县| 曲沃县| 萨嘎县| 高唐县| 昌黎县| 鹤庆县| 铜陵市| 仲巴县| 东宁县| 长泰县| 黎城县| 嘉义县| 揭东县| 光泽县| 剑阁县| 兴和县| 虹口区| 江孜县| 普兰店市| 石渠县| 冕宁县| 宁夏| 九龙城区| 北宁市| 太谷县| 宁武县| 兴安县| 大理市|