1个稳定版本
1.0.0 | 2024年5月22日 |
---|
#17 in #mac-address
6KB
88 行
mac_conditions
支持平台:支持WMIC的任何Windows版本。
示例
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.yaml
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
受MIT和Apache 2.0许可证的双重许可。
依赖项
~4–5.5MB
~107K SLoC