aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-net/src/lib.rs')
-rw-r--r--embassy-net/src/lib.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs
new file mode 100644
index 000000000..88dcf0aa5
--- /dev/null
+++ b/embassy-net/src/lib.rs
@@ -0,0 +1,31 @@
1#![cfg_attr(not(feature = "std"), no_std)]
2
3// This mod MUST go first, so that the others see its macros.
4pub(crate) mod fmt;
5
6mod config;
7mod device;
8mod packet_pool;
9mod stack;
10
11#[cfg(feature = "dhcpv4")]
12pub use config::DhcpConfigurator;
13pub use config::{Config, Configurator, Event as ConfigEvent, StaticConfigurator};
14
15pub use device::{Device, LinkState};
16pub use packet_pool::{Packet, PacketBox, PacketBoxExt, PacketBuf};
17pub use stack::{init, is_config_up, is_init, is_link_up, run};
18
19#[cfg(feature = "tcp")]
20mod tcp_socket;
21#[cfg(feature = "tcp")]
22pub use tcp_socket::TcpSocket;
23
24// smoltcp reexports
25pub use smoltcp::phy::{DeviceCapabilities, Medium};
26pub use smoltcp::time::Duration as SmolDuration;
27pub use smoltcp::time::Instant as SmolInstant;
28pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr};
29pub type Interface = smoltcp::iface::Interface<'static, device::DeviceAdapter>;
30pub type SocketSet = smoltcp::socket::SocketSet<'static>;
31pub use smoltcp::{Error, Result};