From 801018527547784f8ae0fa89986edf7fa56aa4ad Mon Sep 17 00:00:00 2001
From: Joshua Holmes <91363480+joshua-holmes@users.noreply.github.com>
Date: Thu, 12 Jun 2025 13:05:00 -0700
Subject: [PATCH] Make `GILRS` and `WINIT_WINDOWS` public (#19575)
After removing `!Send` resources, `GILRS` and `WINIT_WINDOWS` were not
made public, which is a breaking change. This was brought up in a
[comment on that
PR](https://github.com/bevyengine/bevy/pull/18386#issuecomment-2954209010).
This PR makes them public.
Fixes #19540.
---
crates/bevy_gilrs/src/lib.rs | 2 +-
crates/bevy_winit/src/lib.rs | 4 +-
.../replace_non_send_resources.md | 60 +++++++++++++++++++
3 files changed, 64 insertions(+), 2 deletions(-)
create mode 100644 release-content/migration-guides/replace_non_send_resources.md
diff --git a/crates/bevy_gilrs/src/lib.rs b/crates/bevy_gilrs/src/lib.rs
index db1b404abc..9b86edf03a 100644
--- a/crates/bevy_gilrs/src/lib.rs
+++ b/crates/bevy_gilrs/src/lib.rs
@@ -39,7 +39,7 @@ thread_local! {
/// `NonSendMut` parameter, which told Bevy that the system was `!Send`, but now with the removal of `!Send`
/// resource/system parameter usage, there is no internal guarantee that the system will run in only one thread, so
/// we need to rely on the platform to make such a guarantee.
- static GILRS: RefCell