Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Windows #357

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Draft: Windows #357

wants to merge 5 commits into from

Conversation

peakschris
Copy link

@peakschris peakschris commented Jun 27, 2024

This is a very early cut of windows support.

The build is failing on cargo build script zstd-sys
Three test cases are passing.

I'm finding rules_rust very flaky on windows, particularly around its generation of very long filenames that do not work on windows or with msvc. The rules_rust maintainers have mitigated this to some extent in their builds by using D:\b as output_root, but the issues are hitting this repo too.

It may be that if the binaries can be cross compiled on linux, then rules_rust does not need to be a dependency on the windows platform and things might go more smoothly.

The current blocker is zstd crate that is failing to build on windows.

@alexeagle This is as far as I can go right now with this; it needs a CI or rust expert to get past the current hurdle. If that can be solved I can have another look.

One question: Can we avoid generating zip files with this ruleset for py_binary? I was hoping that this ruleset already does that, it seems not (the zip files and hermetic toolchain together are extremely slow to create and unzip on windows). Are there any plans to directly invoke python with system interpreter?

@peakschris
Copy link
Author

The zstd failure is very similar to this: https://gist.github.com/sbabcoc/28f3b53ae2765444100ee6a183a939b2

@mattem mattem marked this pull request as draft August 8, 2024 14:30
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