#xr #node #client #display #server #stardust #server-client

stardust-xr-fusion

High level client library for the Stardust XR display server

86 releases (34 breaking)

0.43.2 Sep 5, 2023
0.42.1 Aug 1, 2023
0.42.0 Jun 11, 2023
0.38.1 Feb 25, 2023
0.24.5 Nov 30, 2022

#2 in #stardust


Used in 4 crates (3 directly)

MIT license

7.5MB
5K SLoC

stardust-xr

The connecting library for the Stardust XR server/client, with included Fusion and Schema crates


lib.rs:

A library for Stardust XR clients to use with abstractions over the client, nodes, and event loop.

Example

use stardust_xr_fusion::client::Client;

#[tokio::main(flavor="current_thread")]
async fn main() {
   let (_client, event_loop) = Client::connect_with_async_loop().await.unwrap();

   tokio::select! {
   	biased;
   	_ = tokio::signal::ctrl_c() => (),
   	e = event_loop => e.unwrap().unwrap(),
   }
}

Dependencies

~13–25MB
~365K SLoC