# rustcourse **Repository Path**: ilinxq/rustcourse ## Basic Information - **Project Name**: rustcourse - **Description**: Rust语言圣经(Rust Course)学习 - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-09 - **Last Updated**: 2024-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rust语言圣经(Rust Course) > https://course.rs/about-book.html > https://gitee.com/do3d/rustcourse.git # 说明 ## 代码组织方式 [[bin]] name = "00" path = "src/00_helloworld.rs" ## 另一种bin程序组织方式 1. 每个bin的文件放入到 sr/bin/ 目录下,如本示例 src/bin/hello.rs 2. 不需要在 Cargo.toml 文件中进行配置,默认bin程序的名称即为文件名称,如本示例:hello.exe 3. 运行命令:>cargo run --bin hello 4. 编译命令:>cargo build --bin hello ## cargo * 编译 >cargo build --bin 00 * 运行 >cargo run --bin 01