diff --git a/Cargo.lock b/Cargo.lock index 207211f..bc4bc32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -726,6 +726,13 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "insecure_chat" +version = "0.1.0" +dependencies = [ + "mac_address", +] + [[package]] name = "ipnet" version = "2.3.1" @@ -792,6 +799,16 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "mac_address" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b238e3235c8382b7653c6408ed1b08dd379bdb9fdf990fb0bbae3db2cc0ae963" +dependencies = [ + "nix", + "winapi", +] + [[package]] name = "maplit" version = "1.0.2" @@ -898,9 +915,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.23.0" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f305c2c2e4c39a82f7bf0bf65fb557f9070ce06781d4f2454295cc34b1c43188" +checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6" dependencies = [ "bitflags", "cc", diff --git a/crates/insecure_chat/Cargo.toml b/crates/insecure_chat/Cargo.toml new file mode 100644 index 0000000..4ee1f0b --- /dev/null +++ b/crates/insecure_chat/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "insecure_chat" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +mac_address = "1.1.4" diff --git a/crates/insecure_chat/src/main.rs b/crates/insecure_chat/src/main.rs new file mode 100644 index 0000000..abc0ac2 --- /dev/null +++ b/crates/insecure_chat/src/main.rs @@ -0,0 +1,18 @@ +use std::{ + net::{ + IpAddr, + SocketAddr, + }, +}; + +fn main () { + let mut args = std::env::args (); + let mut bail_unknown = true; + // let mut name = + + for arg in args.next () { + + } + + unimplemented!(); +}