# rust_study **Repository Path**: shikong-sk/rust_study ## Basic Information - **Project Name**: rust_study - **Description**: 自学 Rust 学习仓库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-06-26 - **Last Updated**: 2024-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rust Study ## 自学 Rust 仓库 ### 参考资料 - [Rust 语言中文社区](https://rustcc.cn/) - [Rust 官方文档](https://doc.rust-lang.org/book/) - [Rustlings](https://github.com/rust-lang/rustlings) - [Rust by Example](https://doc.rust-lang.org/rust-by-example/) - [Rust 程序设计语言](https://kaisery.github.io/trpl-zh-cn/) ## 子包 ### 通用 #### 新建子包 例子: ```shell cargo new 5.function --name function ``` #### 编译某个子包 ```shell cargo build --manifest-path 5.function/Cargo.toml ``` #### 运行某个子包 ```shell cargo run --manifest-path 5.function/Cargo.toml ``` ### 基于 工作空间 workspace 管理子包 参考文档 - https://course.rs/cargo/reference/workspaces.html #### 编译所有子包 ```shell cargo build --workspace ``` #### 编译工作空间下 某个子包 ```shell cargo build -p variables ``` #### 运行工作空间下 某个子包 ```shell cargo run -p function ```