- Rust Programming By Example
- Guillaume Gomez Antoni Boucher
- 164字
- 2021-07-02 19:13:04
Back to our Cargo.toml file
To go back to our Cargo.toml file, it's also possible to use crates directly from their repositories; you just have to specify this when adding the dependency in your Cargo.toml file. Generally, the published version is less advanced than the one on the corresponding repository but will be more stable.
So for example, if we want to use the repository version for the sdl2 crate, we need to write in our Cargo.toml file:
[dependencies] sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2" }
Easy right? Cargo can also start tests or benchmarks, install binaries, handle special builds through a build file (by default in build.rs), or handle features (we'll come back to this point later in this part).
To put it simply, it's a complete tool, and explaining most of its features would take a lot of time and space, so we'll just stick to the basics for the moment.
You can find a very good documentation/tutorial on Cargo at http://doc.crates.io/index.html.
- 地方檔案與文獻研究(第2輯)
- 圖書館服務思維研究
- 檔案保護技術
- 現代圖書館全面質量管理與創(chuàng)新服務研究
- 地方政府數字檔案集中管理模式研究(國家社會科學基金項目成果)
- 國際集郵聯(lián)合會(FIP)集郵展覽評審規(guī)則
- 大學圖書館信息服務與信息素養(yǎng)教育理論與實踐研究
- 基于知識治理的競爭情報協(xié)同模型研究
- 圖書館戰(zhàn)略規(guī)劃研究
- 高校圖書館創(chuàng)新服務(谷臻小簡·AI導讀版)
- 信息檢索與案例研究
- 中國圖書館轉型風險研究
- 圖書館服務均等化與資源共享(上冊)
- 李一氓文存(第一卷):存在集·存在集續(xù)編
- 數字信息環(huán)境下圖書館信息資源建設與共享