- 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
- Hands-On Data Structures and Algorithms with Rust
- 大數據技術基礎
- Python絕技:運用Python成為頂級數據工程師
- Effective Amazon Machine Learning
- Spark核心技術與高級應用
- Remote Usability Testing
- 智能數據分析:入門、實戰與平臺構建
- MATLAB Graphics and Data Visualization Cookbook
- 數據庫設計與應用(SQL Server 2014)(第二版)
- 達夢數據庫運維實戰
- Python數據分析與挖掘實戰(第3版)
- 從實踐中學習sqlmap數據庫注入測試
- Oracle 11g+ASP.NET數據庫系統開發案例教程
- Access 2010數據庫程序設計實踐教程
- Oracle 11g數據庫管理員指南