- Rust Programming By Example
- Guillaume Gomez Antoni Boucher
- 248字
- 2021-07-02 19:13:03
Cargo and crates.io
A very important thing to note with Rust's ecosystem is that Cargo is really important if not central. It makes things much easier and all Rust projects are using it.
Cargo isn't only a build tool, it's also Rust's default package manager. If you need to download a dependency, Cargo will do it. You can find all available published crates on https://crates.io/. Consider the following screenshot:

Figure 2.1
In the case of the sdl2 crate, we can see on its page (https://crates.io/crates/sdl2) some interesting and useful information:

Figure 2.2
On the right-hand side, you can see the version history. It can be useful to check whether you have the last version or not and whether the crate is still maintained.
In the middle, you have the crate's dependencies. It's always interesting to know what you'll need to install in addition to your crate if something is missing.
And finally on the left-hand side, you have a few links that might be very useful (not always those ones, it depends on what has been put into the Cargo.toml file):
- Documentation: This is where the documentation is hosted (even though I generally recommend docs.rs, I'll talk about it in a moment)
- Repository: This is where this crate's repository is hosted
- Dependent crates: This is the list of the crates depending on this one
- Homepage: If the crate has a website, you can go to its link
Time to go back to docs.rs for a bit.
- 地方檔案與文獻(xiàn)研究(第1輯)
- 大數(shù)據(jù)環(huán)境下高校圖書館知識服務(wù)模式研究
- 國外圖書情報知識圖譜實證研究
- 西夏檔案及其管理制度研究
- 文獻(xiàn)價值:理論文獻(xiàn)學(xué)的價值論解讀
- 基于知識治理的競爭情報協(xié)同模型研究
- 檔案修復(fù)與歷史資料的數(shù)字化:第六屆東亞史料研究編纂機構(gòu)聯(lián)席會議論文集
- 高校圖書館工具書管理與服務(wù)研究
- 陜西古代文獻(xiàn)研究(第一輯)
- 圖書館服務(wù)均等化與資源共享(上冊)
- 黨校圖書館轉(zhuǎn)型發(fā)展實踐研究
- 中外學(xué)術(shù)論文中英文摘要語料庫的創(chuàng)建及應(yīng)用
- 金開誠文選
- 抗戰(zhàn)時期中國圖書館界研究
- 大數(shù)據(jù)搜索與日志挖掘及可視化方案:ELK Stack:Elasticsearch、Logstash、Kibana (第2版)