fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d573dd9f7
master
1[ workspace ] 2members = [ "crates/*" ] 3 4[ workspace . package ] 5edition = "2024" 6# To build revisions that use Corrosion (those before 2024-01), use CMake 3.19, Rustc 1.78 and Rustup 1.27. 7rust-version = "1.85" 8repository = "https://github.com/fish-shell/fish-shell" 9# see doc_src/license.rst for details 10# don't forget to update COPYING and debian/copyright too 11license = "GPL-2.0-only AND LGPL-2.0-or-later AND MIT AND PSF-2.0" 12 13[ workspace . dependencies ] 14anstyle = "1.0.13" 15anyhow = "1.0.102" 16assert_matches = "1.5.0" 17bitflags = "2.5.0" 18cc = "1.0.94" 19cfg-if = "1.0.3" 20clap = { version = "4.5.54" , features = [ "derive" ] } 21clap_complete = { version = "4.6.4" , features = [ "unstable-dynamic" ] } 22errno = "0.3.0" 23fish-build-helper = { path = "crates/build-helper" } 24fish-build-man-pages = { path = "crates/build-man-pages" } 25fish-color = { path = "crates/color" } 26fish-common = { path = "crates/common" } 27fish-fallback = { path = "crates/fallback" } 28fish-feature-flags = { path = "crates/feature-flags" } 29fish-fluent = { path = "crates/fluent" } 30fish-fluent-extraction = { path = "crates/fluent-extraction" } 31fish-gettext = { path = "crates/gettext" } 32fish-gettext-extraction = { path = "crates/gettext-extraction" } 33fish-gettext-maps = { path = "crates/gettext-maps" } 34fish-gettext-mo-file-parser = { path = "crates/gettext-mo-file-parser" } 35fish-localization = { path = "crates/localization" } 36fish-localization-extraction = { path = "crates/localization-extraction" } 37fish-printf = { path = "crates/printf" , features = [ "widestring" ] } 38fish-tempfile = { path = "crates/tempfile" } 39fish-util = { path = "crates/util" } 40fish-wcstringutil = { path = "crates/wcstringutil" } 41fish-wgetopt = { path = "crates/wgetopt" } 42fish-widecharwidth = { path = "crates/widecharwidth" } 43fish-widestring = { path = "crates/widestring" } 44fluent = { git = "https://github.com/danielrainer/fluent-rs" , rev = "cf712bced280b217b6307edabc2089b3e57204ab" } 45fluent-ftl-tools = { git = "https://codeberg.org/danielrainer/fluent-ftl-tools" , rev = "5917664c8f2e4928ef1e480ff5c13bbe1e226066" } 46fluent-syntax = { git = "https://github.com/danielrainer/fluent-rs" , rev = "cf712bced280b217b6307edabc2089b3e57204ab" } 47ignore = "0.4.25" 48itertools = "0.14.0" 49libc = "0.2.177" 50# lru pulls in hashbrown by default, which uses a faster (though less DoS resistant) hashing algo. 51# disabling default features uses the stdlib instead, but it doubles the time to rewrite the history 52# files as of 22 April 2024. 53lru = "0.18.0" 54nix = { version = "0.31.1" , default-features = false , features = [ 55"event" , 56"fs" , 57"hostname" , 58"inotify" , 59"process" , 60"resource" , 61"signal" , 62"term" , 63"user" , 64] } 65num-traits = "0.2.19" 66once_cell = "1.19.0" 67pcre2 = { git = "https://github.com/fish-shell/rust-pcre2" , tag = "0.2.9-utf32" , default-features = false , features = [ 68"utf32" , 69] } 70phf = { version = "0.13" , default-features = false } 71phf_shared = "0.13" 72phf_codegen = "0.13" 73portable-atomic = { version = "1" , default-features = false , features = [ 74"fallback" , 75] } 76proc-macro2 = "1.0" 77rand = { version = "0.10.1" , default-features = false , features = [ 78"thread_rng" , 79] } 80regex = "1.12.3" 81rsconf = "0.3.0" 82rust-embed = { version = "8.11.0" , features = [ 83"deterministic-timestamps" , 84"include-exclude" , 85"interpolate-folder-path" , 86] } 87rustc_version = "0.4.1" 88serial_test = { version = "3" , default-features = false } 89strum_macros = "0.28.0" 90syn = { version = "2.0.117" , default-features = false , features = [ "parsing" ] } 91unic-langid = "0.9.6" 92unicode-segmentation = "1.12.0" 93unicode-width = "0.2.0" 94unix_path = "1.0.1" 95walkdir = "2.5.0" 96widestring = "1.2.0" 97xterm-color = "1.0.1" 98 99[ profile . release ] 100overflow-checks = true 101lto = true 102 103[ profile . release-with-debug ] 104inherits = "release" 105debug = true 106 107[ package ] 108name = "fish" 109version = "4.8.0" 110edition . workspace = true 111rust-version . workspace = true 112default-run = "fish" 113license . workspace = true 114homepage = "https://fishshell.com" 115readme = "README.rst" 116 117[ dependencies ] 118assert_matches . workspace = true 119bitflags . workspace = true 120cfg-if . workspace = true 121errno . workspace = true 122fish-build-helper . workspace = true 123fish-build-man-pages = { workspace = true , optional = true } 124fish-color . workspace = true 125fish-common . workspace = true 126fish-fallback . workspace = true 127fish-feature-flags . workspace = true 128fish-fluent . workspace = true 129fish-fluent-extraction = { workspace = true , optional = true } 130fish-gettext = { workspace = true , optional = true } 131fish-gettext-extraction = { workspace = true , optional = true } 132fish-localization = { workspace = true , optional = true } 133fish-printf . workspace = true 134fish-tempfile . workspace = true 135fish-util . workspace = true 136fish-wcstringutil . workspace = true 137fish-wgetopt . workspace = true 138fish-widecharwidth . workspace = true 139fish-widestring . workspace = true 140fluent . workspace = true 141itertools . workspace = true 142libc . workspace = true 143lru . workspace = true 144macro_rules_attribute = "0.2.2" 145nix . workspace = true 146num-traits . workspace = true 147once_cell . workspace = true 148pcre2 . workspace = true 149rand . workspace = true 150strum_macros . workspace = true 151xterm-color . workspace = true 152 153[ target . 'cfg(not(target_has_atomic = "64"))' . dependencies ] 154portable-atomic . workspace = true 155 156[ target . 'cfg(windows)' . dependencies ] 157rust-embed = { workspace = true , features = [ 158"deterministic-timestamps" , 159"debug-embed" , 160"include-exclude" , 161"interpolate-folder-path" , 162] } 163[ target . 'cfg(not(windows))' . dependencies ] 164rust-embed = { workspace = true , features = [ 165"deterministic-timestamps" , 166"include-exclude" , 167"interpolate-folder-path" , 168] } 169 170[ dev-dependencies ] 171serial_test . workspace = true 172 173[ build-dependencies ] 174cc . workspace = true 175fish-build-helper . workspace = true 176fish-gettext-mo-file-parser . workspace = true 177phf_codegen = { workspace = true , optional = true } 178rsconf . workspace = true 179rustc_version . workspace = true 180 181[ target . 'cfg(windows)' . build-dependencies ] 182unix_path . workspace = true 183 184[ lib ] 185crate-type = [ "rlib" ] 186path = "src/lib.rs" 187 188[[ bin ]] 189name = "fish" 190path = "src/bin/fish.rs" 191 192[[ bin ]] 193name = "fish_indent" 194path = "src/bin/fish_indent.rs" 195 196[[ bin ]] 197name = "fish_key_reader" 198path = "src/bin/fish_key_reader.rs" 199 200[ features ] 201default = [ "embed-manpages" , "localize-messages" ] 202benchmark = [] 203embed-manpages = [ "dep:fish-build-man-pages" ] 204# This feature is used to enable extracting Fluent IDs from the source code for localization check. 205# For normal builds, it should be disabled. 206# It only needs to be enabled if checking Fluent Translation List (FTL) files is desired. 207fluent-extract = [ "fish-fluent/fluent-extract" , "dep:fish-fluent-extraction" ] 208# This feature is used to enable extracting messages from the source code for localization. 209# It only needs to be enabled if updating these messages (and the corresponding PO files) is 210# desired. This happens for the `gettext` xtask, which is also invoked via `cargo xtask check`. 211# There should not be a need to enable this feature manually. 212gettext-extract = [ "dep:fish-gettext-extraction" ] 213# Enable gettext localization at runtime. Requires the `msgfmt` tool to generate catalog data at 214# build time. 215localize-messages = [ 216"fish-fluent/localize-messages" , 217"dep:fish-gettext" , 218"dep:fish-localization" , 219] 220 221# The following features are auto-detected by the build-script and should not be enabled manually. 222tsan = [] 223 224[ workspace . lints ] 225rust . unknown_lints = { level = "allow" , priority = -1 } 226rust . unstable_name_collisions = "allow" 227rustdoc . private_intra_doc_links = "allow" 228 229[ workspace . lints . clippy ] 230assigning_clones = "warn" 231cloned_instead_of_copied = "warn" 232explicit_into_iter_loop = "warn" 233format_push_string = "warn" 234implicit_clone = "warn" 235len_without_is_empty = "allow" # we're not a library crate 236let_and_return = "allow" 237manual_assert = "warn" 238manual_range_contains = "allow" 239map_unwrap_or = "warn" 240mut_mut = "warn" 241needless_lifetimes = "allow" 242new_without_default = "allow" 243option_map_unit_fn = "allow" 244ptr_offset_by_literal = "warn" 245redundant_clone = "warn" 246ref_option = "warn" 247semicolon_if_nothing_returned = "warn" 248stable_sort_primitive = "warn" 249str_to_string = "warn" 250unnecessary_semicolon = "warn" 251unused_trait_names = "warn" 252 253# We do not want to use the e?print(ln)?! macros. 254# These lints flag their use. 255# In the future, they might change to flag other methods of printing. 256print_stdout = "deny" 257print_stderr = "deny" 258# usage in tests is fine since it avoids interacting with TopicMonitor 259# and is configured in clippy.toml with `allow-print-in-tests` 260 261[ lints ] 262workspace = true