2023-08-13 15:17:28 +02:00
|
|
|
[workspace]
|
|
|
|
resolver = "2"
|
2024-07-20 17:19:09 +10:00
|
|
|
members = ["printf"]
|
2023-08-15 01:30:32 +02:00
|
|
|
|
2023-08-15 01:31:46 +02:00
|
|
|
[workspace.package]
|
2024-04-28 15:43:42 +02:00
|
|
|
rust-version = "1.70"
|
2023-08-15 01:31:46 +02:00
|
|
|
edition = "2021"
|
|
|
|
|
2023-08-13 15:17:28 +02:00
|
|
|
[profile.release]
|
|
|
|
overflow-checks = true
|
2024-01-21 20:14:43 +08:00
|
|
|
lto = true
|
2023-08-18 06:53:20 +02:00
|
|
|
|
|
|
|
[package]
|
2024-01-12 13:08:41 +01:00
|
|
|
name = "fish"
|
2023-08-18 06:53:20 +02:00
|
|
|
version = "0.1.0"
|
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
2024-01-23 19:49:35 -08:00
|
|
|
default-run = "fish"
|
2024-07-20 17:19:09 +10:00
|
|
|
# see doc_src/license.rst for details
|
2024-08-04 21:03:32 +08:00
|
|
|
# don't forget to update COPYING and debian/copyright too
|
2024-07-20 17:19:09 +10:00
|
|
|
license = "GPL-2.0-only AND LGPL-2.0-or-later AND MIT AND PSF-2.0"
|
|
|
|
repository = "https://github.com/fish-shell/fish-shell"
|
|
|
|
homepage = "https://fishshell.com"
|
|
|
|
readme = "README.rst"
|
2023-08-18 06:53:20 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2024-09-15 13:44:34 -07:00
|
|
|
pcre2 = { git = "https://github.com/fish-shell/rust-pcre2", tag = "0.2.9-utf32", default-features = false, features = [
|
2024-07-20 17:19:09 +10:00
|
|
|
"utf32",
|
|
|
|
] }
|
2023-08-18 06:53:20 +02:00
|
|
|
|
2024-06-05 17:53:35 +02:00
|
|
|
bitflags = "2.5.0"
|
2024-07-20 17:19:09 +10:00
|
|
|
errno = "0.3.0"
|
2023-08-18 06:53:20 +02:00
|
|
|
lazy_static = "1.4.0"
|
2024-06-05 17:02:57 +02:00
|
|
|
libc = "0.2.155"
|
2024-04-01 22:29:23 +08:00
|
|
|
# lru pulls in hashbrown by default, which uses a faster (though less DoS resistant) hashing algo.
|
|
|
|
# disabling default features uses the stdlib instead, but it doubles the time to rewrite the history
|
|
|
|
# files as of 22 April 2024.
|
2024-06-05 17:53:35 +02:00
|
|
|
lru = "0.12.3"
|
2024-07-20 17:19:09 +10:00
|
|
|
nix = { version = "0.29.0", default-features = false, features = [
|
2024-08-26 17:10:26 -05:00
|
|
|
"event",
|
2024-07-20 17:19:09 +10:00
|
|
|
"inotify",
|
|
|
|
"resource",
|
|
|
|
"fs",
|
|
|
|
] }
|
2024-06-05 17:53:35 +02:00
|
|
|
num-traits = "0.2.19"
|
|
|
|
once_cell = "1.19.0"
|
2024-09-19 15:34:40 -07:00
|
|
|
fish-printf = { path = "./printf", features = ["widestring"] }
|
2024-10-06 19:05:20 -07:00
|
|
|
|
|
|
|
# Don't use the "getrandom" feature as it requires "getentropy" which was not
|
|
|
|
# available on macOS < 10.12. We can enable "getrandom" when we raise the
|
|
|
|
# minimum supported version to 10.12.
|
|
|
|
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
|
2024-06-05 17:53:35 +02:00
|
|
|
widestring = "1.1.0"
|
2024-08-30 21:27:41 +02:00
|
|
|
# We need 0.9.0 specifically for some crash fixes.
|
2024-05-08 15:46:41 +02:00
|
|
|
terminfo = "0.9.0"
|
2023-08-18 06:53:20 +02:00
|
|
|
|
2024-07-28 17:29:37 +07:00
|
|
|
[target.'cfg(not(target_has_atomic = "64"))'.dependencies]
|
2024-09-19 15:34:40 -07:00
|
|
|
portable-atomic = { version = "1", default-features = false, features = [
|
|
|
|
"fallback",
|
|
|
|
] }
|
2024-07-28 17:29:37 +07:00
|
|
|
|
2024-01-03 20:57:28 +01:00
|
|
|
[dev-dependencies]
|
2024-03-31 00:47:33 +08:00
|
|
|
serial_test = { version = "1.0.0", default-features = false }
|
2024-01-03 20:57:28 +01:00
|
|
|
|
2023-08-18 06:53:20 +02:00
|
|
|
[build-dependencies]
|
2024-04-16 21:33:59 -05:00
|
|
|
cc = "1.0.94"
|
2024-05-13 16:36:27 -05:00
|
|
|
rsconf = "0.2.2"
|
2023-08-18 06:53:20 +02:00
|
|
|
|
|
|
|
[lib]
|
2024-01-12 13:08:41 +01:00
|
|
|
crate-type = ["rlib"]
|
2024-01-13 03:45:58 +01:00
|
|
|
path = "src/lib.rs"
|
2023-08-18 06:53:20 +02:00
|
|
|
|
2024-01-12 13:08:41 +01:00
|
|
|
[[bin]]
|
|
|
|
name = "fish"
|
2024-01-13 03:45:58 +01:00
|
|
|
path = "src/bin/fish.rs"
|
2024-01-12 13:08:41 +01:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "fish_indent"
|
2024-01-13 03:45:58 +01:00
|
|
|
path = "src/bin/fish_indent.rs"
|
2024-01-12 13:08:41 +01:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "fish_key_reader"
|
2024-01-13 03:45:58 +01:00
|
|
|
path = "src/bin/fish_key_reader.rs"
|
2024-01-12 13:08:41 +01:00
|
|
|
|
2023-08-18 06:53:20 +02:00
|
|
|
[features]
|
2024-01-03 20:57:28 +01:00
|
|
|
default = []
|
2023-12-10 08:48:18 +01:00
|
|
|
benchmark = []
|
2023-08-18 06:53:20 +02:00
|
|
|
|
|
|
|
# The following features are auto-detected by the build-script and should not be enabled manually.
|
|
|
|
asan = []
|
2024-05-08 14:03:53 -05:00
|
|
|
tsan = []
|
2024-01-12 14:00:00 +01:00
|
|
|
|
|
|
|
[lints]
|
|
|
|
rust.non_camel_case_types = "allow"
|
|
|
|
rust.non_upper_case_globals = "allow"
|
2024-03-09 04:44:27 -06:00
|
|
|
rust.unknown_lints = "allow"
|
2024-01-12 14:00:00 +01:00
|
|
|
rust.unstable_name_collisions = "allow"
|
2024-03-09 04:36:11 -06:00
|
|
|
clippy.manual_range_contains = "allow"
|
2024-01-12 14:00:00 +01:00
|
|
|
clippy.needless_return = "allow"
|