commit dc7304874a9299498776945466b9b0984d2318d2 Author: Martin Brodbeck Date: Mon Oct 2 21:52:22 2023 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..b702d76 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "m32chat" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e1e40ee --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "m32chat" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..2652946 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,7 @@ +use std::net::UdpSocket; + +fn main() -> std::io::Result<()> { + let socket = UdpSocket::bind("0.0.0.0:7373")?; + + Ok(()) +}