about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
authoryuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef>2025-05-31 16:34:45 +0000
committeryuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef>2025-05-31 16:34:45 +0000
commitb4789899f7151bc5607ee4519e3bf542ed0721dd (patch)
tree9eea1fa4a95753824fbd71f12202ac412d5bc5b2 /src/main.rs
parent47e8793bf3dfb8d07a2d23c0f7ae25f4d369c314 (diff)
downloadsalaryman-b4789899f7151bc5607ee4519e3bf542ed0721dd.tar.gz
salaryman-b4789899f7151bc5607ee4519e3bf542ed0721dd.tar.bz2
salaryman-b4789899f7151bc5607ee4519e3bf542ed0721dd.zip
add new dependencies
git-svn-id: svn+ssh://diminuette.aengel.lesbianunix.dev/salaryman/trunk@4 b9215c17-b818-4693-b096-d1e41a411fef
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 21d527a..5538077 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,6 @@
+use serde::{Deserialize, Serialize};
+use surrealdb::{RecordId, Surreal, engine::local::RocksDb};
+
 use std::io::Read;
 use std::process::{Child, Command, Stdio};
 
@@ -10,7 +13,8 @@ fn exec(image: &str, args: Vec<&str>) -> Result<Child, Box<dyn std::error::Error
     Ok(child)
 }
 
-fn main() -> Result<(), Box<dyn std::error::Error>> {
+#[tokio::main]
+async fn main() -> Result<(), Box<dyn std::error::Error>> {
     let mut child = exec("java", vec!["-jar", "minecraft_server.jar"])?;
     std::thread::sleep(std::time::Duration::from_secs(60));
     let mut buf: [u8; 512] = [0; 512];