- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 349字
- 2021-07-02 13:35:18
Package managers
– Tom Love
A real-world software code base is often organized into multiple files and will have many dependencies, and that calls for a dedicated tool for managing them. Package managers are a class of command-line tools that help manage projects of a large size with multiple dependencies. If you come from a Node.js background, you must be familiar with npm/yarn or if you are from Go language, the go tool. They do all the heavy lifting of analyzing the project, downloading the correct versions of dependencies, checking for version conflicts, compiling and linking source files, and much more.
The problem with low-level languages like C/C++ is that they do not ship with a dedicated package manager by default. The C/C++ community have been using the GNU make tool for a long time, which is a language-agnostic build system and has arcane syntax, that puts off many developers. The problem with make is that it does not know what header files are included in your C/C++ sources, so they have to be manually given this information. It has no built-in support for downloading external dependencies, nor does it know about the platform you are running on. Fortunately, this is not the case with Rust as it ships with a dedicated package manager which has more context on the project being managed. What follows is a tour of Cargo, Rust's package manager, which makes it easy to build and maintain Rust projects. But first, we need to dig into Rust's module system a bit more.
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Vue.js 3.x從入門到精通(視頻教學版)
- Python語言程序設計
- 趣學Python算法100例
- 深入淺出Windows API程序設計:編程基礎篇
- 零基礎學Java(第4版)
- Unity Shader入門精要
- C#程序設計基礎:教程、實驗、習題
- 寫給程序員的Python教程
- JavaScript程序設計:基礎·PHP·XML
- QGIS 2 Cookbook
- Learning VMware vSphere
- 多媒體技術及應用
- After Effects CC案例設計與經典插件(視頻教學版)
- TypeScript High Performance