commit e2d443e6beb14c3471a01419c4c52112f0d75fca Author: Ishan Jain Date: Sat Jun 3 22:17:49 2023 +0530 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..0c95a9b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,16 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "mdns-repeater" +version = "0.1.0" +dependencies = [ + "once_cell", +] + +[[package]] +name = "once_cell" +version = "1.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..9fb92e5 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "multicaster" +version = "0.1.0" +edition = "2021" + +[dependencies] +once_cell = "1.17.2" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..887b895 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,6 @@ +use once_cell::sync::Lazy; +use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; + +pub static IPv4: Lazy = Lazy::new(|| Ipv4Addr::new(224, 0, 0, 123).into()); +pub static IPv6: Lazy = + Lazy::new(|| Ipv6Addr::new(0xff02, 0, 0, 0, 0, 0, 0, 0x0123).into()); diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}