fish-shell/fish-rust
Mahmoud Al-Qudsi 1f4c233dfb Add Signal newtype
Signal is a newtype around NonZeroI32. We could use NonZeroU8 since all signal
values comfortably fit, but using i32 lets us avoid a fallible attempt at
narrowing values returned from the system as integers to the narrower u8 type.

Known signals are explicitly defined as constants and can be matched against
with equality or with pattern matching in a `match` block. Unknown signal values
are passed-through without causing any issues.

We're using per-OS targeting to enable certain libc SIGXXX values - we could
change this to dynamically detecting what's available in build.rs but then it
might not match what libc exposes, still giving us build failures.
2023-03-20 16:17:28 -05:00
..
src Add Signal newtype 2023-03-20 16:17:28 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Adopt the new termsize 2023-03-19 16:13:41 -07:00
Cargo.lock Rewrite wait handles and wait handle store in Rust 2023-03-18 18:53:04 -07:00
Cargo.toml Add BSD feature 2023-03-19 17:55:22 -05:00