# rust-study **Repository Path**: linzhisen/rust-study ## Basic Information - **Project Name**: rust-study - **Description**: No description available - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-29 - **Last Updated**: 2025-12-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mac 安装 Rust ## 通过 brew 安装 > [!IMPORTANT] > 需提前安装好brew ### 1. 安装 rust ```bash brew install rust ``` ### 2. 检查是否安装成功 ```bash rustc --version cargo --version ``` ### 3. 配置国内镜像 - 创建配置文件 ```bash echo "" > ~/.cargo/config.toml ``` - 添加国内镜像 将一下内容复制进`config.toml`文件中 ```toml [source.crates-io] replace-with = 'ustc' [source.ustc] registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/" [registries.ustc] index = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/" ```