From: Federico Ceratto Date: Sat, 21 Mar 2026 12:36:00 +0100 Subject: Disable unneded deps, support older deps as needed --- Cargo.toml | 57 ++++++++++++++++++++++++++++----------------------------- core/Cargo.toml | 2 +- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 58d1115..2356237 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ "core", "core/proc-macros", "lib", - "lib/gen-protos", +# "lib/gen-protos", "lib/testutils", ] @@ -25,11 +25,11 @@ keywords = ["VCS", "DVCS", "SCM", "Git", "Mercurial"] [workspace.dependencies] ansi-to-tui = "8.0.1" -anstream = "1.0.0" -assert_cmd = "2.2.2" +anstream = ">=0.6.21" +assert_cmd = ">=2.1.2" assert_matches = "1.5.0" -async-trait = "0.1.89" -blake2 = "0.10.6" +async-trait = ">=0.1.89" +blake2 = ">=0.10.6" bstr = { version = "1.12.1", features = ["serde"] } chrono = { version = "0.4.44", default-features = false, features = [ "std", @@ -44,22 +44,22 @@ clap = { version = "4.6.1", features = [ ] } # Update clap-markdown manually since test_generate_md_cli_help snapshot # will need regenerating. -clap-markdown = "=0.1.5" +clap-markdown = ">=0.1.5" clap_complete = { version = "4.6.5", features = ["unstable-dynamic"] } clap_complete_nushell = "4.6.0" clap_mangen = "0.3.0" clru = "0.6.3" -criterion = "0.8.2" -crossterm = { version = "0.29", default-features = false, features = ["windows"] } +criterion = ">=0.5.1" +crossterm = { version = ">=0.29", default-features = false, features = [] } ctrlc = { version = "3.5.2", features = ["termination"] } datatest-stable = "0.3.3" digest = "0.10.7" dunce = "1.0.5" either = "1.16.0" erased-serde = "0.4.10" -etcetera = "0.11.0" -eyre = "0.6" -futures = "0.3.32" +etcetera = ">=0.10.0" +eyre = ">=0.6" +futures = ">=0.3.32" gix = { version = "0.87.1", default-features = false, features = [ "attributes", "blob-diff", @@ -68,32 +68,31 @@ gix = { version = "0.87.1", default-features = false, features = [ "sha1", "sha256", ] } -gix-ignore = { version = "0.22.1" } -globset = "0.4.18" -hashbrown = { version = "0.17.1", default-features = false, features = ["inline-more"] } +gix-ignore = { version = ">=0.22.0" } +globset = ">=0.4.18" +hashbrown = { version = ">=0.16.1", default-features = false, features = ["inline-more"] } indexmap = { version = "2.14.0", features = ["serde"] } indoc = "2.0.7" insta = { version = "1.47.2", features = ["filters"] } interim = { version = "0.2.1", features = ["chrono_0_4"] } -itertools = "0.15.0" -jsonschema = { version = "0.51.0", default-features = false } -libc = { version = "0.2.186" } +itertools = ">=0.14.0" +jsonschema = { version = ">=0.37.4", default-features = false } +libc = { version = ">=0.2.186" } maplit = "1.0.2" memchr = "2.8.2" -# no_thp due to perf issues with kernel page compaction, see #9708 -mimalloc = { version = "0.1.52", features = ["no_thp"] } -nix = "0.31.3" +mimalloc = { version = ">=0.1.52" } +nix = ">=0.30.1" num_cpus = "1.17.0" once_cell = "1.21.4" percent-encoding = "2.3.2" pest = "2.8.6" pest_derive = "2.8.6" -pollster = "1.0.1" +pollster = ">=0.4.0" pretty_assertions = "1.4.1" proc-macro2 = "1.0.104" proptest = "1.11.0" -proptest-derive = "0.8.0" -proptest-state-machine = "0.8.0" +proptest-derive = ">=0.4.0" +proptest-state-machine = ">=0.4.0" prost = "0.14.3" prost-build = "0.14.3" quote = "1.0.45" @@ -112,7 +111,7 @@ sapling-streampager = "0.12.0" scm-record = "0.10.0" serde = { version = "1.0", features = ["derive", "rc"] } serde_json = "1.0.150" -shlex = "2.0.1" +shlex = ">=1.3.0" slab = "0.4.12" smallvec = { version = "1.15.1", features = [ "const_generics", @@ -124,14 +123,14 @@ strsim = "0.11.1" syn = "3.0.3" tempfile = "3.27.0" test-case = "3.3.1" -textwrap = "0.16.2" +textwrap = ">=0.16.2" thiserror = "2.0.17" timeago = { version = "0.6.0", default-features = false } tokio = { version = "1.52.3", features = ["fs", "io-util", "process", "rt-multi-thread", "sync", "time"] } toml = "1.1.0" -toml_edit = { version = "0.25.12", features = ["serde"] } -tracing = "0.1.44" -tracing-chrome = "0.7.2" +toml_edit = { version = ">=0.25.11", features = ["serde"] } +tracing = ">=0.1.44" +tracing-chrome = ">=0.7.2" tracing-subscriber = { version = "0.3.23", default-features = false, features = [ "std", "ansi", @@ -141,7 +140,7 @@ tracing-subscriber = { version = "0.3.23", default-features = false, features = unicode-width = "0.2.2" watchman_client = "0.9.0" whoami = "2.1.2" -winreg = "0.56" +# winreg = "0.56" # put all inter-workspace libraries, i.e. those that use 'path = ...' here in # their own (alphabetically sorted) block diff --git a/core/Cargo.toml b/core/Cargo.toml index cf4f4d8..7258a81 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -48,7 +48,7 @@ test-case = { workspace = true } [target.'cfg(windows)'.dependencies] same-file = { workspace = true } -winreg = { workspace = true } +# winreg = { workspace = true } [lints] workspace = true