Skip to content

Use windows backend for cygwin target.#833

Open
briansmith wants to merge 1 commit intorust-random:masterfrom
briansmith:b/cygwin-is-windows
Open

Use windows backend for cygwin target.#833
briansmith wants to merge 1 commit intorust-random:masterfrom
briansmith:b/cygwin-is-windows

Conversation

@briansmith
Copy link
Contributor

Cygwin's getrandom implementation is doing the job of the getrandom crate. Instead, we can just bypass it and do our own job ourselves. By default, use the windows backend, but also allow the windows_legacy backend to be used if requested.

@briansmith briansmith marked this pull request as ready for review March 16, 2026 20:59
@newpavlov
Copy link
Member

I am not sure about this. We do not know whether a Cygwin binary will be launched on modern Windows or on Win7. So in a certain sense, Cygwin plays role of a portability layer and I don't think we should bypass it.

Cygwin's `getrandom` implementation is doing the job of the
`getrandom` crate. Instead, we can just bypass it and do our own
job ourselves. By default, use the `windows` backend, but also allow
the `windows_legacy` backend to be used if requested.
@briansmith briansmith force-pushed the b/cygwin-is-windows branch from 044143c to 3bd5217 Compare March 16, 2026 21:24
@briansmith briansmith changed the title CI: Use windows backend for cygwin target. Use windows backend for cygwin target. Mar 16, 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.

2 participants