mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Reuse immutable plugin archives across nextest processes and share admin fixtures within test matrices. Reduce log scanning, hashing, compression, database setup, and SSE scanning costs while preserving isolation and boundary coverage. Use controllable clocks for recovery budgets and quota scheduling, retaining real socket and HTTP verification. Validation: 3200 backend tests, 132 plugin persistence tests, 54 Redis ACL tests, 30 clock stress iterations, clippy, and formatting checks passed. Local full-suite runtime improved from 182.8s to 74.0s at unchanged concurrency. Co-authored-by: Codex <noreply@openai.com>
62 lines
1.5 KiB
TOML
62 lines
1.5 KiB
TOML
[workspace]
|
||
members = [
|
||
"apps/gateway",
|
||
"apps/plugin-cli",
|
||
"crates/gateway-admin",
|
||
"crates/gateway-api",
|
||
"crates/gateway-core",
|
||
"crates/gateway-host",
|
||
"crates/gateway-plugin/runtime",
|
||
"crates/gateway-plugin/sdk",
|
||
"crates/gateway-protocol",
|
||
"crates/gateway-store",
|
||
"crates/providers/openai",
|
||
"crates/providers/xai",
|
||
]
|
||
resolver = "3"
|
||
|
||
[workspace.package]
|
||
version = "0.0.0"
|
||
edition = "2024"
|
||
license = "Apache-2.0"
|
||
publish = false
|
||
rust-version = "1.97"
|
||
|
||
[workspace.lints.rust]
|
||
warnings = "deny"
|
||
unsafe_code = "forbid"
|
||
|
||
[workspace.lints.clippy]
|
||
all = { level = "deny", priority = 10 }
|
||
redundant_clone = { level = "deny", priority = 9 }
|
||
large_enum_variant = { level = "warn", priority = 8 }
|
||
needless_collect = { level = "deny", priority = 7 }
|
||
|
||
[profile.dev]
|
||
debug = true
|
||
|
||
# 测试保留真实密码参数和压缩数据量,优化热点依赖以减少 fixture 的计算开销。
|
||
# test 继承 dev;workspace 代码仍保留默认调试与溢出检查。
|
||
[profile.dev.package.argon2]
|
||
opt-level = 2
|
||
|
||
[profile.dev.package.blake2]
|
||
opt-level = 2
|
||
|
||
[profile.dev.package."sha2@0.11.0"]
|
||
opt-level = 2
|
||
|
||
[profile.dev.package."miniz_oxide@0.9.1"]
|
||
opt-level = 2
|
||
|
||
[profile.release]
|
||
debug = false
|
||
strip = "symbols"
|
||
lto = "thin"
|
||
codegen-units = 1
|
||
panic = "abort"
|
||
|
||
[patch.crates-io]
|
||
# Upstream SOCKS IPv6 fix; remove once a release includes hyperium/hyper-util#302.
|
||
hyper-util = { git = "https://github.com/hyperium/hyper-util", rev = "191b1acf0a6b18e807e4abf5a6d4a7c47979ecd6" }
|