From c2dfde22800177559e46f9dcbfcd59d92e832074 Mon Sep 17 00:00:00 2001 From: fylorn <130388298+SecAegis@users.noreply.github.com> Date: Mon, 14 Sep 2026 10:20:03 +0800 Subject: [PATCH] chore: write crate descriptions in English These show up on crates.io and docs.rs, and this is a public repository. Co-Authored-By: Claude Opus 5 --- bin/twcore/Cargo.toml | 2 +- crates/tw-adopt/Cargo.toml | 2 +- crates/tw-api/Cargo.toml | 2 +- crates/tw-config/Cargo.toml | 2 +- crates/tw-control/Cargo.toml | 2 +- crates/tw-crypto/Cargo.toml | 2 +- crates/tw-dialect/Cargo.toml | 2 +- crates/tw-engine/Cargo.toml | 2 +- crates/tw-gateway/Cargo.toml | 2 +- crates/tw-observe/Cargo.toml | 2 +- crates/tw-pricing/Cargo.toml | 2 +- crates/tw-protocol/Cargo.toml | 2 +- crates/tw-provider/Cargo.toml | 2 +- crates/tw-redact/Cargo.toml | 2 +- crates/tw-resil/Cargo.toml | 2 +- crates/tw-scan/Cargo.toml | 2 +- crates/tw-secret/Cargo.toml | 2 +- crates/tw-store/Cargo.toml | 2 +- crates/tw-types/Cargo.toml | 2 +- crates/tw-yaml/Cargo.toml | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/bin/twcore/Cargo.toml b/bin/twcore/Cargo.toml index 355ffb5c..364cf35c 100644 --- a/bin/twcore/Cargo.toml +++ b/bin/twcore/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "ThinkWatch Lite 的本地 AI 网关引擎" +description = "Self-contained local AI gateway binary, and the engine behind ThinkWatch Lite" [dependencies] tw-config = { workspace = true } diff --git a/crates/tw-adopt/Cargo.toml b/crates/tw-adopt/Cargo.toml index b376aaf8..1049916a 100644 --- a/crates/tw-adopt/Cargo.toml +++ b/crates/tw-adopt/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "检测本机的 AI 客户端,接管与还原它们的配置" +description = "Detect local AI clients, take over their configuration, and restore it" [dependencies] serde = { workspace = true } diff --git a/crates/tw-api/Cargo.toml b/crates/tw-api/Cargo.toml index b078ac95..d9e1b906 100644 --- a/crates/tw-api/Cargo.toml +++ b/crates/tw-api/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "控制面契约:请求/响应类型 + client" +description = "Control-plane contract: request and response types, plus a client" [dependencies] serde = { workspace = true } diff --git a/crates/tw-config/Cargo.toml b/crates/tw-config/Cargo.toml index 799d2368..02885cda 100644 --- a/crates/tw-config/Cargo.toml +++ b/crates/tw-config/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "YAML schema、加载、校验" +description = "YAML config schema, loading, and validation" [dependencies] tw-engine = { workspace = true } diff --git a/crates/tw-control/Cargo.toml b/crates/tw-control/Cargo.toml index 689a9355..0982b15b 100644 --- a/crates/tw-control/Cargo.toml +++ b/crates/tw-control/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "控制面 API 服务端(unix socket)" +description = "Control-plane API server over a unix socket" [dependencies] tw-api = { workspace = true } diff --git a/crates/tw-crypto/Cargo.toml b/crates/tw-crypto/Cargo.toml index 20f975cf..d40450ce 100644 --- a/crates/tw-crypto/Cargo.toml +++ b/crates/tw-crypto/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "AES-256-GCM 信封加解密" +description = "AES-256-GCM envelope encryption and decryption" [dependencies] aes-gcm = { workspace = true } diff --git a/crates/tw-dialect/Cargo.toml b/crates/tw-dialect/Cargo.toml index b0901bae..53f5b619 100644 --- a/crates/tw-dialect/Cargo.toml +++ b/crates/tw-dialect/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "方言互转:Anthropic 与 OpenAI chat 之间的请求与响应翻译" +description = "Dialect translation of requests and responses between Anthropic and OpenAI chat" [dependencies] serde = { workspace = true } diff --git a/crates/tw-engine/Cargo.toml b/crates/tw-engine/Cargo.toml index 8d514209..cf211d64 100644 --- a/crates/tw-engine/Cargo.toml +++ b/crates/tw-engine/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "路由规则引擎与策略组" +description = "Routing rule engine and policy groups" [dependencies] serde = { workspace = true } diff --git a/crates/tw-gateway/Cargo.toml b/crates/tw-gateway/Cargo.toml index 621e52fe..22691b6c 100644 --- a/crates/tw-gateway/Cargo.toml +++ b/crates/tw-gateway/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "数据面 HTTP 服务" +description = "Data-plane HTTP server" [dependencies] tw-api = { workspace = true } diff --git a/crates/tw-observe/Cargo.toml b/crates/tw-observe/Cargo.toml index 11fc13ea..7b08870f 100644 --- a/crates/tw-observe/Cargo.toml +++ b/crates/tw-observe/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "事件总线" +description = "Event bus" [dependencies] tw-api = { workspace = true } diff --git a/crates/tw-pricing/Cargo.toml b/crates/tw-pricing/Cargo.toml index bf8a4deb..7e120964 100644 --- a/crates/tw-pricing/Cargo.toml +++ b/crates/tw-pricing/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "价目表:内置快照 + 用户覆盖,以及成本三态" +description = "Price table: a built-in snapshot, user overrides, and three-state cost (measured, estimated, unpriced)" [dependencies] serde = { workspace = true } diff --git a/crates/tw-protocol/Cargo.toml b/crates/tw-protocol/Cargo.toml index 4478ac2f..382f58a4 100644 --- a/crates/tw-protocol/Cargo.toml +++ b/crates/tw-protocol/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "SSE 分帧与方言间的内容提取" +description = "SSE framing and content extraction across API dialects" [dependencies] bytes = { workspace = true } diff --git a/crates/tw-provider/Cargo.toml b/crates/tw-provider/Cargo.toml index bdc0fa23..8f911007 100644 --- a/crates/tw-provider/Cargo.toml +++ b/crates/tw-provider/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "provider 抽象与各家实现" +description = "Provider abstraction and per-provider implementations" [dependencies] tw-types = { workspace = true } diff --git a/crates/tw-redact/Cargo.toml b/crates/tw-redact/Cargo.toml index 78e97f0e..d999087a 100644 --- a/crates/tw-redact/Cargo.toml +++ b/crates/tw-redact/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "出站脱敏与回显还原:把凭据换成占位符,再在响应里换回来" +description = "Outbound redaction: replace credentials with placeholders, and restore them when a response echoes them back" [dependencies] serde = { workspace = true } diff --git a/crates/tw-resil/Cargo.toml b/crates/tw-resil/Cargo.toml index f8020481..d191091d 100644 --- a/crates/tw-resil/Cargo.toml +++ b/crates/tw-resil/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "重试、熔断、故障转移" +description = "Retries, circuit breaking, and failover" [dependencies] tw-types = { workspace = true } diff --git a/crates/tw-scan/Cargo.toml b/crates/tw-scan/Cargo.toml index aa69b602..a41fc617 100644 --- a/crates/tw-scan/Cargo.toml +++ b/crates/tw-scan/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "客户端配置面的静态扫描:隐藏字符、提示注入、危险命令、过宽权限" +description = "Static scan of client configuration for hidden characters, prompt injection, dangerous commands, and overly broad permissions" [dependencies] serde = { workspace = true } diff --git a/crates/tw-secret/Cargo.toml b/crates/tw-secret/Cargo.toml index 920befbe..88fb5138 100644 --- a/crates/tw-secret/Cargo.toml +++ b/crates/tw-secret/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "环境变量插值、exec 凭据、密钥打码" +description = "Environment variable interpolation, exec-sourced credentials, and secret masking" [dependencies] thiserror = { workspace = true } diff --git a/crates/tw-store/Cargo.toml b/crates/tw-store/Cargo.toml index 3e2d9ae6..340eb1cd 100644 --- a/crates/tw-store/Cargo.toml +++ b/crates/tw-store/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "请求历史与运行时状态:SQLite + 文件系统" +description = "Request history and runtime state on SQLite and the filesystem" [dependencies] tw-api = { workspace = true } diff --git a/crates/tw-types/Cargo.toml b/crates/tw-types/Cargo.toml index 1c9c26fa..904228ff 100644 --- a/crates/tw-types/Cargo.toml +++ b/crates/tw-types/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "共享类型:请求/响应 DTO、调用上下文、网关错误" +description = "Shared types: request and response DTOs, call context, gateway errors" [dependencies] serde = { workspace = true } diff --git a/crates/tw-yaml/Cargo.toml b/crates/tw-yaml/Cargo.toml index 72a795ff..bda564ee 100644 --- a/crates/tw-yaml/Cargo.toml +++ b/crates/tw-yaml/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true -description = "在原文本上做最小替换的 YAML 补丁层" +description = "YAML patch layer that makes minimal edits to the original text" [dependencies] saphyr-parser = { workspace = true }