corewlan 0.2.0

Safe Rust bindings for Apple's CoreWLAN framework — inspect Wi-Fi interfaces, mutable configurations, event delegates, and preferred network state on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use corewlan::prelude::*;

fn main() -> corewlan::Result<()> {
    let profile = MutableNetworkProfile::new()?;
    profile.set_ssid_data(Some(b"corewlan-rs"));
    profile.set_security(Security::Wpa3Personal);

    println!("mutable profile ssid: {:?}", profile.ssid());
    println!("mutable profile security: {:?}", profile.security());
    println!("✅ mutable network profile OK");
    Ok(())
}