Crates.io | wol |
lib.rs | wol |
version | |
source | src |
created_at | 2017-07-04 19:45:38.748819+00 |
updated_at | 2025-03-30 06:53:00.773629+00 |
description | Wake up remote hosts with Wake On LAN magic packets |
homepage | https://github.com/swsnr/wol |
repository | |
max_upload_size | |
id | 21891 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | 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 magic packet command line tool and crate.
$ wol --verbose --port 42 12:13:14:15:16:17
Waking up 12:13:14:15:16:17 with 255.255.255.255:42...
See wol --help
for more information.
cargo install --all-features wol
For packaging, all releases have reproducible git archive and cargo vendor
bundles attached, built and attested by a Github workflow. You can use
gh attestation verify
to check these attestations. I recommend to first build
with --all-features
, then dump the manpage and desired completions with
--print-manpage
and --print-completions
, and eventually build with
--features cli
to remove these options from the final binary. See arch package
above for an example.
You can also use wol
as a Rust crate, with cargo add wol
:
use std::str::FromStr;
use std::net::Ipv4Addr;
let mac_address = wol::MacAddr6::from_str("12-13-14-15-16-17").unwrap();
wol::send_magic_packet(mac_address, None, (Ipv4Addr::BROADCAST, 9).into()).unwrap();
See https://docs.rs/wol for detailed documentation.
Copyright Sebastian Wiesner sebastian@swsnr.de
This program is subject to the terms of the Mozilla Public License, v. 2.0, see LICENSE, unless otherwise noted; some files are subject to the terms of the Apache 2.0 license, see http://www.apache.org/licenses/LICENSE-2.0