- Rust Programming Cookbook
- Claus Matzinger
- 74字
- 2021-06-24 12:27:43
Splitting your code with crates and modules
Rust knows two types of code units: crates and modules. A crate is an external library, complete with its own Cargo.toml configuration file, dependencies, tests, and code. Modules, on the other hand, split the crate into logical parts that are only visible to the user if they import specific functions. Since the 2018 edition of Rust, the difference in using these structural encapsulations has been minimized.
推薦閱讀
- Functional Python Programming
- Learn Blockchain Programming with JavaScript
- Scala Design Patterns
- 精通搜索分析
- 匯編語言程序設計(第2版)
- 老“碼”識途
- KnockoutJS Starter
- HDInsight Essentials(Second Edition)
- Learn React with TypeScript 3
- Nginx Lua開發實戰
- Learning AWS
- Test-Driven JavaScript Development
- Java Web從入門到精通(第3版)
- 軟件測試技術
- Groovy 2 Cookbook