Crates.io | wol-rs |
lib.rs | wol-rs |
version | |
source | src |
created_at | 2022-06-03 05:43:51.152178 |
updated_at | 2024-12-06 14:09:13.604307 |
description | Wake-on-LAN utility |
homepage | https://github.com/fengyc/wol-rs |
repository | https://github.com/fengyc/wol-rs |
max_upload_size | |
id | 599165 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Wake-on-LAN in rust.
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.
Add wol-rs
to Cargo.toml
[dependencies]
wol-rs = "1"
Send a WoL magic packet over UDP
send_wol(<dest_mac>, None, None).unwrap()
MIT