- 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.
推薦閱讀
- The Supervised Learning Workshop
- 跟“龍哥”學(xué)C語(yǔ)言編程
- Java加密與解密的藝術(shù)(第2版)
- 跟小海龜學(xué)Python
- Apache Mesos Essentials
- FLL+WRO樂高機(jī)器人競(jìng)賽教程:機(jī)械、巡線與PID
- Modular Programming in Java 9
- TypeScript項(xiàng)目開發(fā)實(shí)戰(zhàn)
- Jenkins Continuous Integration Cookbook(Second Edition)
- 零基礎(chǔ)Java學(xué)習(xí)筆記
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- Visual Basic語(yǔ)言程序設(shè)計(jì)基礎(chǔ)(第3版)
- 計(jì)算機(jī)系統(tǒng)解密:從理解計(jì)算機(jī)到編寫高效代碼
- Developing Java Applications with Spring and Spring Boot
- C++ Windows Programming