net-lattice 0.15.1

A modern, cross-platform Rust library for configuring and inspecting operating system networking through a single, strongly typed API.
Documentation

net-lattice

The public Net Lattice facade for cross-platform network inspection and configuration. It selects the native backend for Linux, Windows, or macOS and exposes one strongly typed Lattice API.

The facade covers routes, interfaces, addresses, DNS, neighbors, monitoring, and Stage 0.15 ordered mutation-plan execution through ExecutionOptions. Enable the optional async feature for the runtime-independent event stream.

The crate documentation on docs.rs contains the complete public API.

Example

use net_lattice::{ExecutionOptions, Lattice, MutationPlan};

fn inspect_plan<B: net_lattice::LatticeBackend>(
    lattice: &Lattice<B>,
    plan: &MutationPlan,
) {
    let mut options = ExecutionOptions::default();
    let report = lattice.execute_plan(plan, &mut options);
    println!("{report:?}");
}