Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 943 Bytes

File metadata and controls

8 lines (8 loc) · 943 Bytes
  • This is a Rust workspace. Use cargo test --workspace for all tests, cargo test -p proxyapi for the core crate, and cargo test -p proxyapi -- scripting for scripting tests.
  • Before finishing code changes, run cargo fmt --all --check and cargo clippy --workspace -- -D warnings.
  • Build with cargo build --workspace; also check cargo build --workspace --no-default-features when touching Lua scripting or feature gates.
  • Keep the dependency direction proxelar-cli -> proxyapi -> proxyapi_models; proxyapi_models must 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() removes Host, joins duplicate Cookie headers with "; ", and pins HTTP/1.1.
  • Lua script errors must log and pass through, not crash the proxy.