| Crates.io | corewlan-sys |
| lib.rs | corewlan-sys |
| version | 0.1.1 |
| created_at | 2023-02-03 12:12:55.235528+00 |
| updated_at | 2023-06-16 02:48:10.155067+00 |
| description | FFI Bindings to MacOS's CoreWLAN framework. |
| homepage | |
| repository | https://github.com/thisjaiden/corewlan-sys/ |
| max_upload_size | |
| id | 775519 |
| size | 62,683 |
corewlan-sysFFI Bindings to MacOS's CoreWLAN framework.
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());
}
}
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!