- 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.
推薦閱讀
- Python 3.7網(wǎng)絡(luò)爬蟲快速入門
- DevOps with Kubernetes
- 編程珠璣(續(xù))
- C語言從入門到精通(第4版)
- PostgreSQL 11從入門到精通(視頻教學(xué)版)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- Elasticsearch for Hadoop
- Learning Hunk
- C# 8.0核心技術(shù)指南(原書第8版)
- Python忍者秘籍
- 數(shù)據(jù)結(jié)構(gòu)與算法分析(C++語言版)
- Swift Playgrounds少兒趣編程
- Learning Unreal Engine Android Game Development
- ArcGIS for Desktop Cookbook
- Arduino Wearable Projects