官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 泸西县| 鄂托克旗| 文山县| 沈丘县| 彭泽县| 汝阳县| 卢湾区| 邯郸县| 安阳市| 班玛县| 厦门市| 彭阳县| 盐城市| 宣恩县| 怀集县| 勐海县| 青岛市| 黄山市| 福安市| 通化县| 东兰县| 鸡西市| 聂拉木县| 浪卡子县| 阿尔山市| 疏勒县| 灵川县| 三河市| 镇沅| 六枝特区| 怀仁县| 紫阳县| 兴化市| 庄浪县| 鄂托克前旗| 神农架林区| 沐川县| 临武县| 巩义市| 德兴市| 五莲县|