- 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.
- 大數(shù)據(jù)環(huán)境下圖書館文獻(xiàn)信息資源建設(shè)與利用
- 智慧場(chǎng)館與智慧學(xué)習(xí)
- 胡華文集(第一卷)
- 中國(guó)人民大學(xué)復(fù)印報(bào)刊資料轉(zhuǎn)載指數(shù)排名研究報(bào)告2016
- 全民閱讀組織活動(dòng)讀本
- 網(wǎng)絡(luò)學(xué)術(shù)信息老化及應(yīng)對(duì)管理
- 中國(guó)古代戲曲目錄研究
- 中國(guó)古典文獻(xiàn)學(xué)(東北師范大學(xué)文學(xué)院學(xué)術(shù)史文庫)
- 校勘學(xué)釋例(中國(guó)文化叢書·經(jīng)典隨行)
- 升維閱讀
- 茶與咖啡:張信剛文化與經(jīng)濟(jì)講座
- 公共圖書館知識(shí)產(chǎn)權(quán)信息服務(wù)體系建設(shè)
- 圖書館保障弱勢(shì)群體公共信息獲取權(quán)益的對(duì)策研究
- 新國(guó)學(xué)(第十五卷)
- 數(shù)字資源存儲(chǔ)、倉儲(chǔ)和發(fā)布的標(biāo)準(zhǔn)規(guī)范建設(shè)