Feat(OSX): Add OSX Support

This commit is contained in:
Tochukwu Nkemdilim
2018-07-10 13:53:29 +01:00
parent 0089a0b5ed
commit 23355114c4
8 changed files with 75 additions and 40 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ Note that only **open**, **WEP** and **WPA-PSK** networks are supported at the m
```RUST
extern crate wifi_rs;
use wifi_rs::{WiFi, Config, NetworkError};
use wifi_rs::{WiFi, Config, WifiConnectionError};
fn main() -> Result<(), NetworkError> {
fn main() -> Result<(), WifiConnectionError> {
let config = Some(Config {
interface: Some("wlo1"), // interface : None would default to `wlan0`.
});