From dfa252f997808c83ad2ea0fb925be31a909222ef Mon Sep 17 00:00:00 2001 From: Jonah Dahlquist Date: Thu, 25 Feb 2021 19:49:18 -0800 Subject: [PATCH] Short-term net fix --- src/lib.rs | 2 +- src/net.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 160f9bc..7c956b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ impl Default for Mode { pub mod bus; mod device; mod host; -mod net; +pub mod net; pub mod register; mod socket; mod udp; diff --git a/src/net.rs b/src/net.rs index e74a158..c3cc80f 100644 --- a/src/net.rs +++ b/src/net.rs @@ -10,6 +10,8 @@ //! [RFC 2832]: https://github.com/rust-lang/rfcs/pull/2832 #![deny(unsafe_code, missing_docs, warnings)] +// TODO remove some of these constructs and use equivalents available from embedded-nal + /// Ipv4Addr address struct. Can be instantiated with `Ipv4Addr::new`. #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash, Default)] pub struct Ipv4Addr {