#uefi #networking #environment

smoltcp-uefi

Utilities for running smoltcp inside a UEFI environment

3 unstable releases

Uses new Rust 2024

0.2.0 Mar 8, 2025
0.1.1 Mar 8, 2025
0.1.0 Mar 8, 2025

#524 in Hardware support

Download history 252/week @ 2025-03-03 81/week @ 2025-03-10 7/week @ 2025-03-17 2/week @ 2025-03-24

342 downloads per month

MIT license

13KB
167 lines

smoltcp-uefi

This crate contains utilities for using the smoltcp crate inside an EFI environment.

WARNING: This crate is highly experimental right now! It's more of a proof-of-concept than something that's production ready! Suggestions and pull requests are welcome.

Features

  • SnpDevice, a smoltcp::phy::Device running on UEFI's Simple Network Protocol.
  • Type conversion utilities
  • Utilities for getting monotonic smoltcp::time::Instants inside UEFI

Example code

There is currently one example that implements ipv4 ping.

It runs in UEFI, so you probably shouldn't cargo run it on a normal system. Instead, I've provided a helper script in scripts/test_on_qemu.sh for building and running it. See the comment inside that script for information on how to run it.

Dependencies

~4.5MB
~96K SLoC