Initial commit

This commit is contained in:
Ishan Jain 2023-06-03 22:17:49 +05:30
commit e2d443e6be
Signed by: ishan
GPG Key ID: 0506DB2A1CC75C27
5 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

16
Cargo.lock generated Normal file
View File

@ -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"

7
Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "multicaster"
version = "0.1.0"
edition = "2021"
[dependencies]
once_cell = "1.17.2"

6
src/lib.rs Normal file
View File

@ -0,0 +1,6 @@
use once_cell::sync::Lazy;
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
pub static IPv4: Lazy<IpAddr> = Lazy::new(|| Ipv4Addr::new(224, 0, 0, 123).into());
pub static IPv6: Lazy<IpAddr> =
Lazy::new(|| Ipv6Addr::new(0xff02, 0, 0, 0, 0, 0, 0, 0x0123).into());

3
src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}