Skip to content

Prevent unnecessary rebuild with Rust on Windows - #146

Open
FerLuisxd wants to merge 1 commit into
handy-computer:mainfrom
FerLuisxd:fix/windows-rust-unnecessary-rebuild
Open

Prevent unnecessary rebuild with Rust on Windows #146
FerLuisxd wants to merge 1 commit into
handy-computer:mainfrom
FerLuisxd:fix/windows-rust-unnecessary-rebuild

Conversation

@FerLuisxd

Copy link
Copy Markdown

Summary

For the rust bindings, removed the line to rerun if changed when staging the dlls on Windows, because it would mark as it needs a rerun when CMake writes Dlls to the bin directory during the build.rs execution.
This should reduce the building time drastically.
My tests went from 45s to 3s.

Scope

  • bindings (bindings/rust/sys/build.rs)

AI Assistance

Used AI to understand what was the cause of the problem, I guided and verified the changes myself.

Validation

The app compiles faster than before and with no issues.
Also verified that modifying the source again still triggers the rerun

@FerLuisxd
FerLuisxd requested a review from cjpais as a code owner August 26, 2026 10:56
@FerLuisxd FerLuisxd changed the title Prevent unnecessary rebuild on Windows Prevent unnecessary rebuild with Rust on Windows Aug 26, 2026
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