6 releases (2 stable)

1.0.1 Jun 11, 2023
1.0.0 Aug 30, 2022
0.9.1 Jun 15, 2022
0.0.2 Jun 5, 2022

#549 in Network programming

Download history 6057/week @ 2024-07-25 9427/week @ 2024-08-01 7470/week @ 2024-08-08 6581/week @ 2024-08-15 11994/week @ 2024-08-22 11185/week @ 2024-08-29 10811/week @ 2024-09-05 8380/week @ 2024-09-12 8952/week @ 2024-09-19 10131/week @ 2024-09-26 10980/week @ 2024-10-03 10252/week @ 2024-10-10 11030/week @ 2024-10-17 11061/week @ 2024-10-24 13437/week @ 2024-10-31 10589/week @ 2024-11-07

47,507 downloads per month

MIT license

8KB
91 lines

wol-rs

main rust-clippy analyze

Wake-on-LAN in rust.

Install

Binary

Download from https://github.com/fengyc/wol-rs/releases.

OR using cargo install

cargo install wol-rs --features bin

OR build from source

cargo install --git https://github.com/fengyc/wol-rs.git --features bin

Run wol -h, to show available options and args.

Wake-on-LAN utility

USAGE:
    wol [OPTIONS] <MAC_ADDR>

ARGS:
    <MAC_ADDR>    Destination MAC address

OPTIONS:
    -b, --bind-addr <BIND_ADDR>      Bind IP address [default: 0.0.0.0]
    -c, --bcast-addr <BCAST_ADDR>    Broadcast IP address [default: 255.255.255.255]
    -h, --help                       Print help information
    -V, --version                    Print version information

ipv6 WoL magic packet can be send by specifying -b and -c with ipv6 address.

Lib

Add wol-rs to Cargo.toml

[dependencies]
wol-rs = "1"

Send a WoL magic packet over UDP

send_wol(<dest_mac>, None, None).unwrap()

License

MIT

Dependencies

~0–490KB