Allow server crate builds without a prebuilt web bundle #69

Open
opened 2026-10-04 17:50:41 +00:00 by kayg · 0 comments
Owner

Problem and evidence

crates/server/build.rs:6-9 exits when web/index.html is absent and tells the developer to run scripts/build-web. The architecture review's cold cargo build -p infraternal-server spent 658.361 s compiling dependencies before failing with that prerequisite. This is a failed cold build, not a successful Rust-only timing.

Recommendation

Separate the server library's compile/test prerequisites from the top-level binary's embedded-web requirement. Keep production binary assembly dependent on the real web build and retain the production-browser gate against the real binary.

Payoff and estimate

Makes server-only feedback possible without a JS install/build while preserving the shipping artifact. Estimate: 1–2 engineering days.

Priority: Next milestone.

2026-10-04 owner decisions: Matches performance-first work while preserving the one-binary static-web product and production verification.

Report: arch-review report
Source: arch-review 2026-10-04

## Problem and evidence `crates/server/build.rs:6-9` exits when `web/index.html` is absent and tells the developer to run `scripts/build-web`. The architecture review's cold `cargo build -p infraternal-server` spent 658.361 s compiling dependencies before failing with that prerequisite. This is a failed cold build, not a successful Rust-only timing. ## Recommendation Separate the server library's compile/test prerequisites from the top-level binary's embedded-web requirement. Keep production binary assembly dependent on the real web build and retain the production-browser gate against the real binary. ## Payoff and estimate Makes server-only feedback possible without a JS install/build while preserving the shipping artifact. Estimate: 1–2 engineering days. **Priority:** Next milestone. **2026-10-04 owner decisions:** Matches performance-first work while preserving the one-binary static-web product and production verification. **Report:** [arch-review report](/mnt/hdd/infraternal/jobs/arch-review/report.md) **Source: arch-review 2026-10-04**
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/infraternal-v0#69
No description provided.