- Rust Quick Start Guide
- Daniel Arbuckle
- 182字
- 2021-06-10 19:46:00
Project metadata
The Cargo.toml file is where metadata about the program is stored. That includes the program's name, version number, and authors, but importantly it also has a section for dependencies. Editing the content of the [dependencies] section is how we tell Rust that our code should be linked to external libraries when it is compiled, which libraries and versions to use, and where to find them. External libraries are collections of source code that were packaged up in order to make them easy to use as components of other programs. By finding and linking good libraries, we can save the time and effort of writing our whole program ourselves. Instead, we can write only the part that nobody else has already done.
By the way, .toml files are written in Tom's Obvious, Minimal Language ( TOML), a more well-defined and feature-complete version of the old .ini format that Microsoft popularized but never standardized. TOML is becoming quite popular, and is supported and used in a wide variety of languages and applications. You can find the language specification at https://github.com/toml-lang/toml.
推薦閱讀
- Google Flutter Mobile Development Quick Start Guide
- TypeScript Blueprints
- Microsoft Application Virtualization Cookbook
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- 我的第一本算法書(shū)
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Java設(shè)計(jì)模式及實(shí)踐
- 青少年P(guān)ython編程入門
- Mastering JavaScript Design Patterns(Second Edition)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- HTML 5與CSS 3權(quán)威指南(第3版·上冊(cè))
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開(kāi)發(fā)實(shí)踐
- 小型編譯器設(shè)計(jì)實(shí)踐
- Go語(yǔ)言開(kāi)發(fā)實(shí)戰(zhàn)(慕課版)
- .NET Standard 2.0 Cookbook