- Rust Essentials(Second Edition)
- Ivo Balbaert
- 129字
- 2021-07-02 15:30:37
The Standard Library
Rust's Standard Library, stdlib, contains all primitive types, basic modules, and macros. In fact, nearly all of this book talks about it, with Chapter 11, Exploring the Standard Library filling in some gaps.
It is the well-tested and minimal code that ensures portability to a wide diversity of platforms and on which is built the rest of the ecosystem.
Having installed Rust also means that you have a binary version of the Standard Library on your system. When you compile source code or do a cargo build, this stdlib is included; this explains why the executable file size is not that small (for example 129 KB for welcomec.exe on Windows).
Compile with rustc -C prefer-dynamic welcome.rs to get a small executable, like 10 KB for welcome.
推薦閱讀
- Mastering Visual Studio 2017
- UML和模式應用(原書第3版)
- Learning Chef
- Rake Task Management Essentials
- VMware vSphere 6.7虛擬化架構實戰指南
- C語言程序設計
- Linux Shell核心編程指南
- Getting Started with Eclipse Juno
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- Java 9 Programming By Example
- Mastering VMware Horizon 7(Second Edition)
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Puppet:Mastering Infrastructure Automation
- Java高手是怎樣煉成的:原理、方法與實踐