From 9299374ec1ec2f6f32278ac9500de840b9691b91 Mon Sep 17 00:00:00 2001 From: kingecg Date: Tue, 20 Jan 2026 00:42:48 +0800 Subject: [PATCH] =?UTF-8?q?```=20docs(AGENTS.md):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F=E6=A0=87=E5=87=86=E5=92=8C?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了关于修复未使用导入、字段和变量警告的要求 - 调整了HTTP服务器框架说明,明确区分axum和hyper的角色 - 更新了JavaScript引擎选择,指定使用rquickjs及其特性 ``` --- AGENTS.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0fdf1ac..b552a08 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -87,6 +87,7 @@ cargo clean - Use `?` operator for error propagation - Handle errors gracefully with proper logging - Avoid using `unwrap()` or `expect()` in production code +- Current warnings: unused imports, unused fields, unused mut variable (fix before committing) ### Async/Await Patterns - Use `async`/`await` for asynchronous operations @@ -163,7 +164,8 @@ rhttpd/ ### Core Runtime - `tokio` - Async runtime -- `hyper` or `axum` - HTTP server framework +- `axum` - HTTP server framework +- `hyper` - HTTP implementation - `tower` - Middleware and service abstractions ### Configuration @@ -181,7 +183,7 @@ rhttpd/ - `tokio-native-tls` - TLS support ### JavaScript Engine -- Choose one: `deno_core`, `rquickjs`, or `boa_engine` +- `rquickjs` - QuickJS JavaScript engine with futures and macro support ## Development Workflow