- 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.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- iOS面試一戰到底
- 程序員面試筆試寶典
- Practical Windows Forensics
- 匯編語言程序設計(第3版)
- SQL基礎教程(視頻教學版)
- Scala編程實戰(原書第2版)
- 劍指Java:核心原理與應用實踐
- Getting Started with Python and Raspberry Pi
- Visual Studio Code 權威指南
- Python青少年趣味編程
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- 計算機應用基礎(第二版)
- Microsoft HoloLens By Example
- JavaScript前端開發基礎教程