25 releases

Uses new Rust 2024

0.6.0 Apr 1, 2026
0.5.2 Sep 30, 2025
0.5.1 Aug 9, 2025
0.5.0 May 4, 2025
0.1.14 Jun 21, 2021

#1747 in Network programming

Download history 154/week @ 2026-01-07 25/week @ 2026-01-14 1/week @ 2026-01-28 6/week @ 2026-02-25 8/week @ 2026-03-18 148/week @ 2026-04-01 54/week @ 2026-04-08 292/week @ 2026-04-15 441/week @ 2026-04-22

940 downloads per month

MIT/Apache

51KB
1.5K SLoC

tokio-smoltcp

A async wrapper for smoltcp.

Note

v0.1.x does not follow semver, the API may change at any time.

Example

See examples/pcap.rs.

cargo build --example pcap && sudo ./target/debug/examples/pcap -h

This example uses pcap as backend and do the following things:

  1. Bind a UDP port and send a DNS request to 114.114.114.114:53 and get the www.baidu.com's IP.
  2. Create a TcpStream and send a simple HTTP/1.0 request, then print the HTTP response.
  3. Create a echo server listening to 0.0.0.0:12345, accept incoming connections and send the data back.

Dependencies

~6–9.5MB
~174K SLoC