dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Fat linking with `subsecond` fails on windows due to CLI command length

Open dsgallups opened this issue 11 months ago • 0 comments

Problem The command issued here can be extremely long on windows systems.

https://github.com/DioxusLabs/dioxus/blob/b2bd1f48d434becfff9f0ea390ad8ef46996300a/packages/cli/src/build/request.rs#L1838-L1844

Windows has a command length limit of 32767...so, projects with many dependencies are likely to fail.

Steps To Reproduce

On Windows, you will need to create a project with many dependencies. This should fail, even if the project is located in the root of the drive.

Attached is output, where I have added a trace for the command to be executed. This is a debug of the Command struct.

commandbroke.txt

  • Dioxus version: main
  • Rust version: 1.87
  • OS info: Windows 11 current stable

Edit:

Jon Kelley has mentioned decreasing codegen-unit size as a workaround 😄

dsgallups avatar May 24 '25 23:05 dsgallups