This crates aims to provide an implementation of the SLIP protocol for [smoltcp].
```rust norun use linuxembeddedhal::Serial; use smoltcp::iface::EthernetInterface; use smoltcp::wire::{Ipv4Address, Ipv4Cidr}; use smoltcpslip::SlipInterface;
// open a serial device let device = Serial::open("/dev/ttyS0").expect("open serial port");
// create a SLIP interface from this device let localaddr = Ipv4Cidr::new(Ipv4Address([192, 168, 1, 1]), 24); let peeraddr = Ipv4Address([192, 168, 1, 2]); let iface = SlipInterface::new(device, localaddr, peeraddr);
// convert it to an ethernet interface let mut iface = EthernetInterface::from(iface);
// At this point, iface.poll() and the likes can be called. ```