- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 233字
- 2021-07-02 14:11:44
Cargo and Crates
Rust is a rather young language that has been designed from scratch to be a practical and useful tool for programmers. This is a great situation to be in: there are no legacy applications to care about, and many lessons learned from other languages have been incorporated in Rust—especially around tooling.
Integrating and managing third-party packages has been an issue in the past for a lot of languages, and there are a few different approaches out there:
- NPM: The package manager for Node, which has been very popular with the JavaScript community
- Maven: Enterprise-grade Java package management, based on the XML format
- NuGet: .NET's package management
- PyPI: The Python package index
Each of these has different styles of configuration, naming guidelines, publishing infrastructure, features, plugins, and so on. The Rust team learned from all of these approaches and built their own version: cargo. This chapter will be all about the power of cargo of how and where to integrate with the wealth of packages (called crates) out there. Whether you are working on your own small library or you are building a large enterprise-grade system, cargo will be a central piece of the project. By reading this chapter, you can look forward to the following:
- Learning more about cargo, its configuration, and plugins
- Knowing more about the different types of crates
- Benchmarking and test integration done in cargo
- Google Visualization API Essentials
- Mastering Ninject for Dependency Injection
- 分布式數據庫系統:大數據時代新型數據庫技術(第3版)
- Hadoop與大數據挖掘(第2版)
- 商業分析思維與實踐:用數據分析解決商業問題
- 大數據營銷:如何讓營銷更具吸引力
- 一個64位操作系統的設計與實現
- LabVIEW 完全自學手冊
- AI時代的數據價值創造:從數據底座到大模型應用落地
- Chef Essentials
- Web Services Testing with soapUI
- Visual FoxPro數據庫技術基礎
- 區塊鏈+:落地場景與應用實戰
- 大數據分析:R基礎及應用
- 云工作時代:科技進化必將帶來的新工作方式