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

Getting ready

First, create a new project using cargo new iteration --lib and add the following to the newly created Cargo.toml file in the project's directory:

[dev-dependencies]
rand = "^0.5"

This adds a dependency to the rand (https://github.com/rust-random/rand) crate to the project, which will be installed upon running cargo test the first time. Open the entire project (or the src/lib.rs file) in Visual Studio Code.

主站蜘蛛池模板: 清水县| 怀仁县| 广汉市| 寻甸| 即墨市| 鸡东县| 广河县| 茌平县| 浦北县| 河源市| 县级市| 汽车| 河曲县| 兖州市| 黔西| 东光县| 乐都县| 镇江市| 建瓯市| 崇明县| 磐安县| 会理县| 宁城县| 克什克腾旗| 息烽县| 苗栗市| 宁国市| 樟树市| 武功县| 定州市| 精河县| 南和县| 长春市| 黑河市| 巴马| 安乡县| 元谋县| 凉山| 孝义市| 凤阳县| 婺源县|