/rust-picotcp

Rust bindings for the picoTCP library

Primary LanguageRustGNU General Public License v2.0GPL-2.0

rust-picotcp

An ongoing effort to create bindings for the complete PicoTCP library Basic wrappers around some of the core functionality of PicoTCP have been create. You can now reply to IPv4 and IPv6 pings, be a dhcp server or an echo server.

Installation

You don't have to install rust-picotcp, but rather add it to your Cargo.toml as a dependency:

[dependencies.picotcp]
git = "https://github.com/maximevince/rust-picotcp.git"

Usage

Here's a sample program using rust-picotcp:

extern crate picotcp;

fn main() {
    picotcp::stack_init();
}

If you put that into a file called src/picotest.rs, and add a corresponding Cargo.toml file, you can:

$ cargo build
$ ./target/picotest

License

GPLv2 licensed.