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

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.

主站蜘蛛池模板: 平陆县| 郯城县| 望奎县| 博乐市| 望都县| 岱山县| 神农架林区| 和龙市| 平昌县| 和顺县| 沛县| 泸州市| 西安市| 孟村| 嘉黎县| 大方县| 老河口市| 正宁县| 嘉黎县| 横峰县| 克山县| 文化| 西乡县| 德钦县| 绍兴市| 会宁县| 沂源县| 万安县| 枣强县| 万州区| 呼和浩特市| 万荣县| 广西| 汤阴县| 青河县| 彰武县| 汝阳县| 巧家县| 阿克陶县| 明光市| 竹山县|