```
docs(AGENTS.md): 更新代码质量标准和依赖说明 - 添加了关于修复未使用导入、字段和变量警告的要求 - 调整了HTTP服务器框架说明,明确区分axum和hyper的角色 - 更新了JavaScript引擎选择,指定使用rquickjs及其特性 ```
This commit is contained in:
parent
b56b493325
commit
9299374ec1
|
|
@ -87,6 +87,7 @@ cargo clean
|
||||||
- Use `?` operator for error propagation
|
- Use `?` operator for error propagation
|
||||||
- Handle errors gracefully with proper logging
|
- Handle errors gracefully with proper logging
|
||||||
- Avoid using `unwrap()` or `expect()` in production code
|
- Avoid using `unwrap()` or `expect()` in production code
|
||||||
|
- Current warnings: unused imports, unused fields, unused mut variable (fix before committing)
|
||||||
|
|
||||||
### Async/Await Patterns
|
### Async/Await Patterns
|
||||||
- Use `async`/`await` for asynchronous operations
|
- Use `async`/`await` for asynchronous operations
|
||||||
|
|
@ -163,7 +164,8 @@ rhttpd/
|
||||||
|
|
||||||
### Core Runtime
|
### Core Runtime
|
||||||
- `tokio` - Async runtime
|
- `tokio` - Async runtime
|
||||||
- `hyper` or `axum` - HTTP server framework
|
- `axum` - HTTP server framework
|
||||||
|
- `hyper` - HTTP implementation
|
||||||
- `tower` - Middleware and service abstractions
|
- `tower` - Middleware and service abstractions
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
@ -181,7 +183,7 @@ rhttpd/
|
||||||
- `tokio-native-tls` - TLS support
|
- `tokio-native-tls` - TLS support
|
||||||
|
|
||||||
### JavaScript Engine
|
### JavaScript Engine
|
||||||
- Choose one: `deno_core`, `rquickjs`, or `boa_engine`
|
- `rquickjs` - QuickJS JavaScript engine with futures and macro support
|
||||||
|
|
||||||
## Development Workflow
|
## Development Workflow
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue