+++ title = "[TRIAGE] workers-rs compatibility with native Rust test binaries (may need separate native feature flag)" priority = 9 status = "todo" ticket_type = "task" dependencies = ["f3dc74"] +++ This is a triage decision ticket. It must be resolved before dependent implementation tickets can proceed. workers-rs compatibility with native Rust test binaries: the workers-rs crate targets the Cloudflare Workers runtime, not native Linux/macOS. Can the API code be compiled as a native binary for `cargo test`? 1. **Conditional compilation** — use `#[cfg(target_env = "worker")]` to switch between workers-rs entry point and a plain Axum server. The native build is used for testing. 2. **Feature flags** — add a `native` feature that enables the Axum server path. `cargo test` uses `--features native`. 3. **Separate test binary** — integration tests spawn a separately compiled native test server binary. 1. Research the options above and choose the best approach for this project. 2. Update ticket 6e829e (api main.rs) and ticket 9b581f (test harness) with the chosen approach. 3. Mark this ticket done with a note on the chosen approach in the body or a comment. `chore(quotesdb): resolve triage — workersrs-compatibility-with-native-rust-test-binaries-may-n`