You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
Markdown
32 lines
1.4 KiB
Markdown
+++
|
|
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"]
|
|
+++
|
|
|
|
<context>
|
|
This is a triage decision ticket. It must be resolved before dependent implementation tickets can proceed.
|
|
</context>
|
|
|
|
<question>
|
|
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`?
|
|
</question>
|
|
|
|
<options>
|
|
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.
|
|
</options>
|
|
|
|
<resolution>
|
|
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.
|
|
</resolution>
|
|
|
|
<commit>
|
|
`chore(quotesdb): resolve triage — workersrs-compatibility-with-native-rust-test-binaries-may-n`
|
|
</commit>
|