init
This commit is contained in:
commit
c8c1a54304
4 changed files with 1243 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/target
|
1220
Cargo.lock
generated
Normal file
1220
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
11
Cargo.toml
Normal file
11
Cargo.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "color-cube"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
stardust-xr-fusion = { git = "https://github.com/StardustXR/core" }
|
||||
stardust-xr-molecules = { git = "https://github.com/StardustXR/molecules" }
|
||||
tokio = { version = "1.37.0", features = ["full"] }
|
11
src/main.rs
Normal file
11
src/main.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use stardust_xr_fusion::client::Client;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let (client, event_loop) = Client::connect_with_async_loop().await.unwrap();
|
||||
|
||||
tokio::select! {
|
||||
_ = tokio::signal::ctrl_c() => (),
|
||||
_ = event_loop => panic!("server crashed"),
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue