Crates.io | mac_conditions |
lib.rs | mac_conditions |
version | 1.0.0 |
source | src |
created_at | 2024-05-22 10:15:29.06983 |
updated_at | 2024-05-22 10:15:29.06983 |
description | Obtain the MAC address by matching the conditions |
homepage | |
repository | https://github.com/spdrwcn/mac_conditions |
max_upload_size | |
id | 1247772 |
size | 5,558 |
mac_conditions
Supported platforms: Any version of Windows that supports WMIC.
use mac_conditions;
fn main() {
let (wired_mac, wireless_mac, bluetooth_mac) = mac_conditions::get_mac_addresses();
println!("wired_mac: {:?}", wired_mac);
println!("wireless_mac: {:?}", wireless_mac);
println!("bluetooth_mac: {:?}", bluetooth_mac);
}
conditions:
- adapter_type: wired
keywords:
- ["gbe", "true"]
- adapter_type: wireless
keywords:
- ["wi-fi", "true"]
- ["wi-fi", "ax"]
- ["wireless", "true"]
- adapter_type: bluetooth
keywords:
- ["bluetooth", "true"]
mac_conditions
is licensed under both MIT and Apache 2.0