2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-13 12:43:43 +00:00
fish-shell/fish-rust/src
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
..
builtins Rewrite wait handles and wait handle store in Rust 2023-03-18 18:53:04 -07:00
tests Silence some more clippy lints 2023-03-05 00:54:17 -06:00
wutil Add tests for normalize_path and fix some bugs 2023-03-12 19:50:35 -07:00
abbrs.rs abbr: port abbreviation and abbr builtin to rust 2023-02-25 12:24:58 +01:00
color.rs Port color.cpp to Rust 2023-03-04 11:46:46 -08:00
common.rs ScopeGuard: remove memory leak 2023-03-13 11:54:05 -05:00
env.rs builtins: Rewrite pwd in Rust 2023-03-12 15:18:15 -05:00
event.rs Adopt the new termsize 2023-03-19 16:13:41 -07:00
expand.rs Added constants for expansions 2023-03-12 19:50:35 -07:00
fd_monitor.rs Remove obsolete clippy suppression 2023-03-05 10:32:20 +01:00
fd_readable_set.rs Port fd_monitor (and its needed components) 2023-02-19 15:42:03 -06:00
fds.rs Implement and use Read and Write traits for AutoCloseFd 2023-03-05 00:33:54 -06:00
ffi.rs Adopt the new termsize 2023-03-19 16:13:41 -07:00
ffi_init.rs Port (and use) ASSERT_IS_BACKGROUND_THREAD/ASSERT_IS_MAIN_THREAD 2023-02-19 16:54:50 -06:00
ffi_tests.rs rust: fix doc comments 2023-02-05 11:57:25 +01:00
flog.rs Add the category name back to FLOG output in Rust 2023-03-19 16:04:57 -07:00
future_feature_flags.rs Follow Rust naming convention for some types 2023-02-08 21:49:54 +01:00
job_group.rs Run rustfmt and clippy in CI () 2023-02-26 13:20:20 -06:00
lib.rs Reimplement termsize in Rust 2023-03-19 16:13:41 -07:00
nix.rs Address clippy lints 2023-02-25 12:24:25 +01:00
parse_constants.rs Simplify Default impl for ParseError 2023-03-17 19:59:52 -05:00
path.rs Use char_at instead of to_char_slice() 2023-03-12 19:50:35 -07:00
re.rs re: port regex make anchored to rust and helper ffi funtions for regex 2023-02-25 12:24:57 +01:00
redirection.rs Canonicalize some wide string imports 2023-03-05 10:32:20 +01:00
signal.rs Add Signal newtype 2023-03-20 16:17:28 -05:00
smoke.rs Add an FFI test facility 2023-02-02 19:34:48 -07:00
termsize.rs Adopt the new termsize 2023-03-19 16:13:41 -07:00
threads.rs Improve FLOG output 2023-03-04 11:35:21 -08:00
timer.rs Address clippy lints 2023-02-25 12:24:25 +01:00
tokenizer.rs Canonicalize some wide string imports 2023-03-05 10:32:20 +01:00
topic_monitor.rs Improve FLOG output 2023-03-04 11:35:21 -08:00
util.rs Prefer taking native Rust strings instead of wcharz_t 2023-02-05 12:22:42 +01:00
wait_handle.rs Rewrite wait handles and wait handle store in Rust 2023-03-18 18:53:04 -07:00
wchar.rs Added constants for expansions 2023-03-12 19:50:35 -07:00
wchar_ext.rs use $( ... )* syntax 2023-03-20 11:20:12 -07:00
wchar_ffi.rs Add trait to convert FFI reference to &wstr 2023-03-12 14:55:50 -05:00
wgetopt.rs Canonicalize some wide string imports 2023-03-05 10:32:20 +01:00