corewlan-sys 0.1.1

FFI Bindings to MacOS's CoreWLAN framework.
Documentation
  • Coverage
  • 90.48%
    38 out of 42 items documented0 out of 0 items with examples
  • Size
  • Source code size: 62.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.67 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • thisjaiden/corewlan-sys
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thisjaiden

corewlan-sys

FFI Bindings to MacOS's CoreWLAN framework.

Usage

You can either read the docs at docs.rs or apple.com. A small example is provided below.

extern crate corewlan-sys;

fn main() -> Result<(), ()> {
    let client = CWWiFiClient::sharedWiFiClient();
    let interface = client.interface();
    let networks = interface.scanForNetworksWithName(None)?;
    for network in networks {
        println!("SSID: {}", network.ssid());
    }
}

Disclaimer

This crate does not have every interface in Apple's documentation perfectly implimented 1:1. Some things will be missing, some things will have bugs.
If you find a bug or need a feature, open an issue. I'll try to resolve it as best and quick as I can. Better yet, make a PR!