Axum expects being run in a tokio context, but Bevy isn't that. Use the same approach as we do for matchbox_socket, and wrap the async call using async-compat
Moves binding to an explicit optional step, and makes Server::local_addr return an Option<SocketAddr>
Alternative to #352
Axum expects being run in a tokio context, but Bevy isn't that. Use the same approach as we do for
matchbox_socket
, and wrap the async call usingasync-compat
Moves binding to an explicit optional step, and makes
Server::local_addr
return anOption<SocketAddr>
Fixes #350