diff --git a/src/lib.rs b/src/lib.rs index bb493df..f9faf2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1 +1 @@ -mod net; +pub mod net; diff --git a/src/net.rs b/src/net.rs index 65a0807..91d3bc5 100644 --- a/src/net.rs +++ b/src/net.rs @@ -1,6 +1,6 @@ use std::net::Ipv4Addr; -trait ToIpv4 { +pub trait ToIpv4 { fn to_ipv4(self) -> Ipv4Addr; } @@ -10,7 +10,7 @@ impl ToIpv4 for u32 { } } -trait Tou32 { +pub trait Tou32 { fn to_u32(self) -> u32; }