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

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.

主站蜘蛛池模板: 禄劝| 广饶县| 北票市| 广东省| 连州市| 上饶县| 武夷山市| 右玉县| 丹阳市| 伽师县| 湛江市| 德兴市| 平利县| 来宾市| 鸡西市| 温宿县| 上林县| 合水县| 祁门县| 富蕴县| 金华市| 平利县| 阿尔山市| 宁远县| 安化县| 衡水市| 淮滨县| 长岭县| 长寿区| 宜兴市| 无极县| 杨浦区| 米易县| 河东区| 长葛市| 营山县| 德钦县| 武平县| 泉州市| 北碚区| 门源|