# 02-concurrency **Repository Path**: czlan91/02-concurrency ## Basic Information - **Project Name**: 02-concurrency - **Description**: rust 第二周 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-30 - **Last Updated**: 2024-05-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rust 第二周 多线程 、 异步处理 ## 修改 1. pre-commit install 2. 修改ciff.toml 中的仓库地址 3. 修改项目名称 ## run ```shell cargo run --example thread1 cargo run --example matrix RUST_LOG=info cargo run --example dredis ``` ## cargo 依赖 ```shell cargo add anyhow cargo add rand # 一次性的 channel cargo add oneshot # 线程安全的 map cargo add dashmap cargo add tokio --features rt --features rt-multi-thread --features macros --features net --features io-util cargo add tracing cargo add tracing-subscriber --features env-filter ```