Skip to content

fix(dist): move msvc-crt-static to workspace.metadata so cargo-dist reads it#17

Merged
ob-aion merged 3 commits into
mainfrom
fix/windows-dist-crt-static-placement
Jul 7, 2026
Merged

fix(dist): move msvc-crt-static to workspace.metadata so cargo-dist reads it#17
ob-aion merged 3 commits into
mainfrom
fix/windows-dist-crt-static-placement

Conversation

@ob-aion

@ob-aion ob-aion commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The 0.2.0 Windows dist build failed on a RuntimeLibrary mismatch (LNK2038): pyke's ONNX Runtime is a dynamic-CRT (MD) static lib, while cargo-dist's +crt-static default built whisper.cpp and Rust static (MT).
  • The msvc-crt-static = false fix was under [package.metadata.dist], which cargo-dist ignores (warning: "only accepted in workspace.metadata"). Moves it to [workspace.metadata.dist] so the dist build links the dynamic CRT and every object agrees on MD.

Test plan

  • Windows dist CRT smoke runs the real dist build --target x86_64-pc-windows-msvc on windows-2022 and links — the temporary leg, dropped before merge
  • on re-tag: all five dist-build legs green through publish

ob-aion added 3 commits July 7, 2026 23:47
…eads it

The 0.2.0 Windows dist build failed on a RuntimeLibrary mismatch (LNK2038): pyke's
ORT is dynamic-CRT (MD) while cargo-dist's +crt-static default built whisper.cpp/Rust
static (MT). The msvc-crt-static=false fix was under [package.metadata.dist], which
cargo-dist ignores with a warning — it only reads the key from workspace.metadata.
Move it there so the dist build actually links the dynamic CRT.
Runs the real cargo-dist `dist build` on windows-2022 so it reads the moved key
and links as the release does — a plain cargo build bypasses the CRT flag and
false-passed last time.
@ob-aion ob-aion merged commit 671a7de into main Jul 7, 2026
20 checks passed
@ob-aion ob-aion deleted the fix/windows-dist-crt-static-placement branch July 7, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant