Skip to content

Bevy 0.19 migration - #556

Open
barafael wants to merge 4 commits into
johanhelsing:mainfrom
barafael:main
Open

Bevy 0.19 migration#556
barafael wants to merge 4 commits into
johanhelsing:mainfrom
barafael:main

Conversation

@barafael

Copy link
Copy Markdown

WORK IN PROGRESS

initial bevy 0.19 port which I'm testing myself right now. AI-assisted, so don't waste your time reviewing it closely yet.

I'll comment and remove this part of the disclaimer once this is ready for detailed review!

barafael added 3 commits July 16, 2026 10:13
Bumps bevy to 0.19, ggrs to 0.13, and bevy_ggrs to 0.22 to match.

Key changes:
- Remove Component derive from MatchboxSocket (Resource is now a subtrait of Component in Bevy 0.19)
- Add type Out = () to Command impls (required by Bevy 0.19 Command trait)
- Detach socket/server startup tasks (Task::detach returns () in Bevy 0.19)
- Update bevy_ggrs example for new APIs (FontSource, FontSize, with_num_players returns Result, add_rollback -> insert)
Bump matchbox_protocol, matchbox_socket, matchbox_signaling,
matchbox_server, and bevy_matchbox from 0.14.0 to 0.15.0.

This release includes the upgrade to Bevy 0.19.
The socket message loop no longer panics -- and with it kills every
connection of the socket -- when an outgoing send races a peer teardown
(WebRTC blips, abrupt disconnects, rejoins under a new id). It drops the
outgoing packet with a warning instead. Upper layers treat reliable sends
as best-effort and retransmit, so dropping is safe.

A data-channel on_open callback no longer panics after handshake
teardown. The receiving end (the handshake-completion future) may already
be gone when the channel opens mid-race; we log instead of taking the
whole message loop down.

Also trim the workspace to the runtime crates needed for patching
(bevy_matchbox, matchbox_socket, matchbox_signaling, matchbox_protocol):
drop matchbox_server and the examples/ and website/ trees.
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