diff --git a/pod-operation/.gitignore b/pod-operation/.gitignore index 45badb7..9fe342c 100644 --- a/pod-operation/.gitignore +++ b/pod-operation/.gitignore @@ -1,2 +1 @@ ./target - diff --git a/pod-operation/package.json b/pod-operation/package.json new file mode 100644 index 0000000..7f24f42 --- /dev/null +++ b/pod-operation/package.json @@ -0,0 +1,10 @@ +{ + "name": "pod-operation", + "version": "1.0.0", + "description": "", + "scripts": { + "lint": "cargo clippy", + "format": "cargo fmt" + }, + "author": "" +} diff --git a/pod-operation/rustfmt.toml b/pod-operation/rustfmt.toml new file mode 100644 index 0000000..18d655e --- /dev/null +++ b/pod-operation/rustfmt.toml @@ -0,0 +1 @@ +hard_tabs = true \ No newline at end of file diff --git a/pod-operation/src/main.rs b/pod-operation/src/main.rs index 456ee9c..3b39c2b 100644 --- a/pod-operation/src/main.rs +++ b/pod-operation/src/main.rs @@ -3,15 +3,15 @@ use socketioxide::SocketIo; #[tokio::main] async fn main() { - // Make a layer for Socket connection - let (layer, _io) = SocketIo::new_layer(); + // Make a layer for Socket connection + let (layer, _io) = SocketIo::new_layer(); - // Initialize the - let app: Router = Router::new() - .route("/", get(|| async { "Hello world" })) - .layer(layer); + // Initialize the + let app: Router = Router::new() + .route("/", get(|| async { "Hello world" })) + .layer(layer); - let listener = tokio::net::TcpListener::bind("0.0.0.0:5000").await.unwrap(); + let listener = tokio::net::TcpListener::bind("0.0.0.0:5000").await.unwrap(); - axum::serve(listener, app).await.unwrap(); + axum::serve(listener, app).await.unwrap(); }