diff options
Diffstat (limited to 'embassy-net/src/lib.rs')
| -rw-r--r-- | embassy-net/src/lib.rs | 31 |
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..a2a320adf --- /dev/null +++ b/embassy-net/src/lib.rs | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #![cfg_attr(not(feature = "std"), no_std)] | ||
| 2 | #![feature(const_fn)] | ||
| 3 | #![feature(const_in_array_repeat_expressions)] | ||
| 4 | #![feature(const_generics)] | ||
| 5 | #![feature(const_evaluatable_checked)] | ||
| 6 | #![allow(incomplete_features)] | ||
| 7 | |||
| 8 | // This mod MUST go first, so that the others see its macros. | ||
| 9 | pub(crate) mod fmt; | ||
| 10 | |||
| 11 | mod pool; // TODO extract to embassy, or to own crate | ||
| 12 | |||
| 13 | mod config; | ||
| 14 | mod device; | ||
| 15 | mod packet_pool; | ||
| 16 | mod stack; | ||
| 17 | mod tcp_socket; | ||
| 18 | |||
| 19 | pub use config::{Config, Configurator, DhcpConfigurator, StaticConfigurator, UpConfig}; | ||
| 20 | pub use device::{Device, LinkState}; | ||
| 21 | pub use packet_pool::{Packet, PacketBox, PacketBuf}; | ||
| 22 | pub use stack::{init, is_init, run}; | ||
| 23 | pub use tcp_socket::TcpSocket; | ||
| 24 | |||
| 25 | // smoltcp reexports | ||
| 26 | pub use smoltcp::phy::{DeviceCapabilities, Medium}; | ||
| 27 | pub use smoltcp::time::Duration as SmolDuration; | ||
| 28 | pub use smoltcp::time::Instant as SmolInstant; | ||
| 29 | pub use smoltcp::wire::{IpAddress, IpCidr, Ipv4Address, Ipv4Cidr}; | ||
| 30 | pub type Interface = smoltcp::iface::Interface<'static, device::DeviceAdapter>; | ||
| 31 | pub type SocketSet = smoltcp::socket::SocketSet<'static>; | ||
