- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 135字
- 2021-07-02 14:11:46
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.
推薦閱讀
- 漫話大數據
- PyTorch深度學習實戰:從新手小白到數據科學家
- 數據庫原理及應用教程(第4版)(微課版)
- 數據庫基礎與應用:Access 2010
- MongoDB管理與開發精要
- Creating Mobile Apps with Sencha Touch 2
- 數據革命:大數據價值實現方法、技術與案例
- 數據庫技術實用教程
- 淘寶、天貓電商數據分析與挖掘實戰(第2版)
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- 改變未來的九大算法
- Oracle高性能SQL引擎剖析:SQL優化與調優機制詳解
- Internet of Things with Python
- 數據中心經營之道