# rust-playground **Repository Path**: ever-lose/rust-playground ## Basic Information - **Project Name**: rust-playground - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-11 - **Last Updated**: 2025-12-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 运行 `cargo run` # Rust 学习演示项目 这个项目是为 Rust 学习过程设计的,允许您创建和运行独立的示例代码,展示不同的 Rust 概念和功能。 ## 项目结构 - `src/examples/` - 包含各种独立的 Rust 示例文件 - `src/main.rs` - 主程序,用于运行指定的示例 - `src/play.rs` - 游玩的例子 - `src/minigrep` - 仿 ripgrep 的示例 - `src/hetco` - 仿 hetco 的示例 ## example 示例 运行 ```bash cargo run method ``` 查看所有可用的示例 ```bash cargo run list ``` ## minigrep 示例 运行 ```bash cargo run minigrep 苍山 src/minigrep/poem.txt > output.txt ``` 单元测试 ```bash % cargo test ```