Crates.io | watchexec-signals |
lib.rs | watchexec-signals |
version | |
source | src |
created_at | 2023-03-18 11:12:23.495055+00 |
updated_at | 2025-02-09 10:12:23.591228+00 |
description | Watchexec's signal types |
homepage | |
repository | https://github.com/watchexec/watchexec |
max_upload_size | |
id | 813670 |
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 |
Watchexec's signal type.
use std::str::FromStr;
use watchexec_signals::Signal;
fn main() {
assert_eq!(Signal::from_str("SIGINT").unwrap(), Signal::Interrupt);
}
serde
: enables serde support.fromstr
: enables FromStr
support (default).miette
: enables miette (rich diagnostics) support (default).