Skip to content

Add a native BRP HTTP client behind a client feature - #25837

Open
jbuehler23 wants to merge 1 commit into
bevyengine:mainfrom
jbuehler23:jackdaw/brp-client
Open

jbuehler23 wants to merge 1 commit into
bevyengine:mainfrom
jbuehler23:jackdaw/brp-client

Conversation

@jbuehler23

Copy link
Copy Markdown
Contributor

Objective

Part of #23013.

Add an async BRP client to bevy_remote so tools can call a running app from rust without blocking. This will be used by the inspector and in the future the editor.

Related to #20189 and #25818.

Solution

An async client behind an off by default client feature, on the same hyper and smol stack as the server, so no new dependencies. Calls run on bevy's io task pool and can be awaited or spawned from systems. Native only, like the http feature.

  • call a method with optional params and get the result or a typed error (io, http, json, or the remote's own BRP error)
  • a spawn variant that returns a task for use from systems
  • a bevy_remote_client passthrough on the bevy crate so examples can ask for it

The integration test example uses it for instant calls. Watching methods are not covered yet since they are a server sent event stream.

AI disclosure

AI assistance was used to help port these changes and to plan this upstream series from our existing Jackdaw functionality. All changes were reviewed by a human before submission.

@jbuehler23 jbuehler23 added C-Feature A new feature, making something new possible A-Dev-Tools Tools used to debug Bevy applications. D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Dev-Tools Tools used to debug Bevy applications. C-Feature A new feature, making something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants