Skip to content

Adopt fbuild's perf + Windows-correctness lessons (meta) #2

Description

@zackees

Adopt fbuild's perf + Windows-correctness lessons

FastLED/fbuild is a hybrid Rust+Python tool that has spent the past month grinding down ~50× of cumulative wall-clock cost on its install + iteration loop, and just landed a Windows stdout-ordering fix that is exactly the same bug this template will hit. Time to back-port the lessons.

This is a meta-issue — each box below was a self-contained PR. All merged; closing.

Source PRs in fbuild (for reference)

Punch list

Correctness

Build speed

Followups

Acceptance — all verified

  • cmd /c 'echo === BEFORE === & template-cli --version & echo === AFTER ===' prints === AFTER === after the output (verified locally on Windows after uv pip install dist/...whl into a fresh venv).
  • unzip -l dist/template_python_rust_cmd-*.whl shows template_python_rust_cmd-0.1.0.data/scripts/template-cli.exe. No _bin/ entries.
  • file $(which template-cli) reports PE32+ executable for MS Windows ... (console), x86-64. Not a Zip-archive console-script stub.

PRs merged in order

# PR Items
1 #3 (2) + (3) — dev profile + rust-lld
2 #4 (7) — uv cache-keys
3 #5 (4) + (5) — CARGO_TARGET_DIR + no-build-isolation
4 #6 (6) + (8) — mtime-skip + JSON artifact discovery
5 #7 (1) + (10) — raw wheel script, drop Python shim
6 #8 (9) — BUILD_PROFILE=dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions