- This is a Rust workspace. Use
cargo test --workspacefor all tests,cargo test -p proxyapifor the core crate, andcargo test -p proxyapi -- scriptingfor scripting tests. - Before finishing code changes, run
cargo fmt --all --checkandcargo clippy --workspace -- -D warnings. - Build with
cargo build --workspace; also checkcargo build --workspace --no-default-featureswhen touching Lua scripting or feature gates. - Keep the dependency direction
proxelar-cli->proxyapi->proxyapi_models;proxyapi_modelsmust stay pure data types with no async or network code. - Keep
#![forbid(unsafe_code)]intact. - For TLS tests/startup, install the rustls ring provider and ignore repeated install errors with
let _ =. - Preserve proxy invariants:
normalize_request()removesHost, joins duplicateCookieheaders with"; ", and pins HTTP/1.1. - Lua script errors must log and pass through, not crash the proxy.