watchexec/crates/signals
Félix Saparelli 7ea7d2629d
signals: add first-class SIGSTOP etc
2023-12-09 23:08:18 +13:00
..
src signals: add first-class SIGSTOP etc 2023-12-09 23:08:18 +13:00
CHANGELOG.md signals: add first-class SIGSTOP etc 2023-12-09 23:08:18 +13:00
Cargo.toml release: watchexec-signals v2.0.0 (#705) 2023-11-29 05:18:03 +00:00
README.md Fix and adjust docs (#530) 2023-03-18 10:23:46 +00:00
release.toml --emit-events-to (#515) 2023-03-18 21:32:24 +13:00

README.md

watchexec-signals

Watchexec's signal type.

use std::str::FromStr;
use watchexec_signals::Signal;

fn main() {
    assert_eq!(Signal::from_str("SIGINT").unwrap(), Signal::Interrupt);
}

Features

  • serde: enables serde support.
  • fromstr: enables FromStr support (default).
  • miette: enables miette (rich diagnostics) support (default).