docs(zh-CN): translate code block(plain text) (#753)

Co-authored-by: neo <neo.dowithless@gmail.com>
This commit is contained in:
zdoc.app
2026-03-23 06:39:24 +08:00
committed by GitHub
parent fd2a8edb53
commit 4f6f587700
118 changed files with 1807 additions and 1835 deletions

View File

@@ -129,15 +129,15 @@ for user in &users {
src/
├── main.rs
├── lib.rs
├── auth/ # Domain module
├── auth/ # 领域模块
│ ├── mod.rs
│ ├── token.rs
│ └── middleware.rs
├── orders/ # Domain module
├── orders/ # 领域模块
│ ├── mod.rs
│ ├── model.rs
│ └── service.rs
└── db/ # Infrastructure
└── db/ # 基础设施
├── mod.rs
└── pool.rs
```

View File

@@ -20,17 +20,17 @@ paths:
```text
my_crate/
├── src/
│ ├── lib.rs # Unit tests in #[cfg(test)] modules
│ ├── lib.rs # 位于 #[cfg(test)] 模块中的单元测试
│ ├── auth/
│ │ └── mod.rs # #[cfg(test)] mod tests { ... }
│ └── orders/
│ └── service.rs # #[cfg(test)] mod tests { ... }
├── tests/ # Integration tests (each file = separate binary)
├── tests/ # 集成测试(每个文件 = 独立的二进制文件)
│ ├── api_test.rs
│ ├── db_test.rs
│ └── common/ # Shared test utilities
│ └── common/ # 共享的测试工具
│ └── mod.rs
└── benches/ # Criterion benchmarks
└── benches/ # Criterion 基准测试
└── benchmark.rs
```