Add src-tauri/.cargo/config.toml with --exclude-all-symbols linker flag for x86_64-pc-windows-gnu. MinGW auto-exports ~106k public Rust symbols into the cdylib export table, exceeding the 65,535 PE ordinal limit. The desktop binary links against rlib (static) so the cdylib export table is unused. An empty export table is a valid DLL. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
7 lines
341 B
TOML
7 lines
341 B
TOML
[target.x86_64-pc-windows-gnu]
|
|
# Prevent MinGW ld from auto-exporting all ~106k public symbols into the DLL
|
|
# export table, which would exceed the 65535 ordinal limit and cause a link
|
|
# error. The desktop binary links against rlib (static), so cdylib exports
|
|
# are unused at runtime.
|
|
rustflags = ["-C", "link-arg=-Wl,--exclude-all-symbols"]
|