2024-01-12 21:00:00 +08:00
|
|
|
// Delete this once we require Rust 1.74.
|
2023-12-10 15:48:18 +08:00
|
|
|
#![cfg_attr(feature = "benchmark", feature(test))]
|
2023-01-15 06:56:24 +08:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(non_upper_case_globals)]
|
2023-12-07 01:36:13 +08:00
|
|
|
#![allow(unstable_name_collisions)]
|
2023-03-05 14:54:17 +08:00
|
|
|
#![allow(clippy::bool_assert_comparison)]
|
2023-10-09 05:22:27 +08:00
|
|
|
#![allow(clippy::box_default)]
|
|
|
|
#![allow(clippy::collapsible_if)]
|
|
|
|
#![allow(clippy::comparison_chain)]
|
2023-03-05 14:54:17 +08:00
|
|
|
#![allow(clippy::derivable_impls)]
|
2023-10-09 01:08:46 +08:00
|
|
|
#![allow(clippy::field_reassign_with_default)]
|
2023-12-30 04:17:22 +08:00
|
|
|
#![allow(clippy::get_first)]
|
2023-10-09 05:22:27 +08:00
|
|
|
#![allow(clippy::if_same_then_else)]
|
2024-01-12 21:07:54 +08:00
|
|
|
#![allow(clippy::len_without_is_empty)]
|
2023-10-09 01:08:46 +08:00
|
|
|
#![allow(clippy::manual_is_ascii_check)]
|
2023-10-09 05:22:27 +08:00
|
|
|
#![allow(clippy::mut_from_ref)]
|
2023-10-09 01:08:46 +08:00
|
|
|
#![allow(clippy::needless_return)]
|
2024-01-12 21:07:54 +08:00
|
|
|
#![allow(clippy::new_without_default)]
|
2023-04-18 18:53:32 +08:00
|
|
|
#![allow(clippy::option_map_unit_fn)]
|
2023-04-22 02:56:15 +08:00
|
|
|
#![allow(clippy::ptr_arg)]
|
2023-10-09 05:22:27 +08:00
|
|
|
#![allow(clippy::redundant_slicing)]
|
|
|
|
#![allow(clippy::too_many_arguments)]
|
2023-10-09 01:08:46 +08:00
|
|
|
#![allow(clippy::uninlined_format_args)]
|
2023-01-15 06:56:24 +08:00
|
|
|
|
2023-08-20 21:48:41 +08:00
|
|
|
pub const BUILD_VERSION: &str = match option_env!("FISH_BUILD_VERSION") {
|
|
|
|
Some(v) => v,
|
|
|
|
None => git_version::git_version!(args = ["--always", "--dirty=-dirty"], fallback = "unknown"),
|
|
|
|
};
|
|
|
|
|
2023-02-26 23:34:03 +08:00
|
|
|
#[macro_use]
|
2024-01-12 20:08:41 +08:00
|
|
|
pub mod common;
|
2023-04-02 22:42:59 +08:00
|
|
|
|
2024-01-12 20:08:41 +08:00
|
|
|
pub mod abbrs;
|
|
|
|
pub mod ast;
|
|
|
|
pub mod autoload;
|
|
|
|
pub mod builtins;
|
|
|
|
pub mod color;
|
|
|
|
pub mod complete;
|
|
|
|
pub mod curses;
|
|
|
|
pub mod editable_line;
|
|
|
|
pub mod env;
|
|
|
|
pub mod env_dispatch;
|
|
|
|
pub mod env_universal_common;
|
|
|
|
pub mod event;
|
|
|
|
pub mod exec;
|
|
|
|
pub mod expand;
|
|
|
|
pub mod fallback;
|
|
|
|
pub mod fd_monitor;
|
|
|
|
pub mod fd_readable_set;
|
|
|
|
pub mod fds;
|
|
|
|
pub mod flog;
|
|
|
|
pub mod fork_exec;
|
|
|
|
pub mod function;
|
|
|
|
pub mod future;
|
|
|
|
pub mod future_feature_flags;
|
|
|
|
pub mod global_safety;
|
|
|
|
pub mod highlight;
|
|
|
|
pub mod history;
|
|
|
|
pub mod input;
|
|
|
|
pub mod input_common;
|
|
|
|
pub mod io;
|
|
|
|
pub mod job_group;
|
|
|
|
pub mod kill;
|
2024-01-08 02:18:15 +08:00
|
|
|
#[allow(non_snake_case)]
|
2024-01-12 20:08:41 +08:00
|
|
|
pub mod libc;
|
|
|
|
pub mod locale;
|
|
|
|
pub mod nix;
|
|
|
|
pub mod null_terminated_array;
|
|
|
|
pub mod operation_context;
|
|
|
|
pub mod output;
|
|
|
|
pub mod pager;
|
|
|
|
pub mod parse_constants;
|
|
|
|
pub mod parse_execution;
|
|
|
|
pub mod parse_tree;
|
|
|
|
pub mod parse_util;
|
|
|
|
pub mod parser;
|
|
|
|
pub mod parser_keywords;
|
|
|
|
pub mod path;
|
|
|
|
pub mod pointer;
|
|
|
|
pub mod print_help;
|
|
|
|
pub mod proc;
|
|
|
|
pub mod re;
|
|
|
|
pub mod reader;
|
|
|
|
pub mod reader_history_search;
|
|
|
|
pub mod redirection;
|
|
|
|
pub mod screen;
|
|
|
|
pub mod signal;
|
|
|
|
pub mod termsize;
|
|
|
|
pub mod threads;
|
|
|
|
pub mod timer;
|
|
|
|
pub mod tinyexpr;
|
|
|
|
pub mod tokenizer;
|
|
|
|
pub mod topic_monitor;
|
|
|
|
pub mod trace;
|
|
|
|
pub mod universal_notifier;
|
|
|
|
pub mod util;
|
|
|
|
pub mod wait_handle;
|
|
|
|
pub mod wchar;
|
|
|
|
pub mod wchar_ext;
|
|
|
|
pub mod wcstringutil;
|
|
|
|
pub mod wgetopt;
|
|
|
|
pub mod widecharwidth;
|
|
|
|
pub mod wildcard;
|
|
|
|
pub mod wutil;
|
2023-01-16 11:52:08 +08:00
|
|
|
|
2024-01-04 03:57:28 +08:00
|
|
|
#[cfg(test)]
|
2023-03-05 13:49:17 +08:00
|
|
|
mod tests;
|