wol-rs
Wake-on-LAN in rust.
Install
Binary
Download from https://github.com/fengyc/wol-rs/releases
OR
cargo install wol-rs
Run wol -h
, to show options and args.
Wake-on-LAN utility
USAGE:
wol [OPTIONS]
ARGS:
Destination MAC address
OPTIONS:
-b, --bind-addr Bind IP address [default: 0.0.0.0]
-c, --bcast-addr Broadcast IP address [default: 255.255.255.255]
-h, --help Print help information
-V, --version Print version information
Lib
Add wol-rs
to Cargo.toml
[dependencies]
wol-rs = "1"
Send a WoL magic packet over UDP
send_wol(, None, None).unwrap()
License
MIT