- 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ū)籍刊刻與古文運(yùn)動(dòng)
- 公共圖書(shū)館文獻(xiàn)信息資源政府采購(gòu)
- 檔案社會(huì)控制功能研究
- 科學(xué)名家
- 檔案檢索: 理論與方法
- 美華書(shū)館:檔案如是說(shuō)(新聞出版博物館文庫(kù)·研究)
- 信息資源的公共獲取機(jī)制研究
- 云環(huán)境下的文件檔案可信性保障
- 區(qū)域科技情報(bào)的研究與實(shí)踐
- 升維閱讀
- 圖書(shū)館服務(wù)管理內(nèi)化:概念、過(guò)程及整合因素
- 高校圖書(shū)館創(chuàng)新服務(wù)(谷臻小簡(jiǎn)·AI導(dǎo)讀版)
- 當(dāng)代博物館的新角色與新視野
- 讓文明得到更好的傳承:公共文化服務(wù)體系中公共檔案館發(fā)展戰(zhàn)略