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

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.

主站蜘蛛池模板: 陆川县| 桐庐县| 吴桥县| 石河子市| 邵武市| 都匀市| 赞皇县| 嘉兴市| 巩义市| 东山县| 新郑市| 浙江省| 即墨市| 定远县| 长岛县| 绥棱县| 鄂托克旗| 肇源县| 黑河市| 邢台县| 上思县| 丰县| 松桃| 凤冈县| 宁陵县| 日照市| 天门市| 广德县| 康乐县| 宜丰县| 临猗县| 忻城县| 阿克苏市| 大庆市| 安阳市| 忻州市| 通州市| 郓城县| 梓潼县| 丰台区| 余江县|