From 08a0487880344b91d7ed11f95421517be491be24 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 28 Sep 2025 21:07:41 +0100 Subject: [PATCH] Be more permissive with dependency versions The tests all pass when using the bottom of the new version ranges on Windows. The unicase dependency's lower bound is limited by rust-ini even after using the latest master branch versions of esplugin, libloadorder and loot-condition-interpreter. The proc-macro2 and quote dependencies' lower bounds are limited by pyo3's dependency tree. The nodejs wrapper's dependencies haven't been touched. --- Cargo.toml | 28 ++++++++++++++-------------- array-parameterized-test/Cargo.toml | 6 +++--- cpp/Cargo.toml | 6 +++--- python/Cargo.toml | 4 ++-- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f15d2375..20e523fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,24 +8,24 @@ edition.workspace = true license.workspace = true [dependencies] -crc32fast = "1.5.0" -esplugin = "6.1.3" -libloadorder = "18.4.0" -log = { version = "0.4.28", features = ["std"] } -loot-condition-interpreter = "5.3.2" -petgraph = "0.8.1" -rayon = "1.11.0" -regress = "0.10.4" -rustc-hash = "2.1.1" -saphyr = "0.0.6" -unicase = "2.8.1" +crc32fast = "1" +esplugin = "6.1" +libloadorder = "18.4" +log = { version = "0.4.6", features = ["std"] } +loot-condition-interpreter = "5" +petgraph = ">= 0.6, < 0.9" +rayon = "1" +regress = ">= 0.2.0, < 0.11" +rustc-hash = ">= 1.0.0, < 3" +saphyr = ">= 0.0.5, < 0.0.7" +unicase = "2.6.0" [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.61.0", features = ["Win32_Storage_FileSystem"] } +windows-sys = { version = ">= 0.60.0, < 0.62", features = ["Win32_Storage_FileSystem"] } [dev-dependencies] -array-parameterized-test = { path = "./array-parameterized-test", version = "1.0.0" } -tempfile = "3.21.0" +array-parameterized-test = { path = "./array-parameterized-test", version = "1" } +tempfile = "3" [lints] workspace = true diff --git a/array-parameterized-test/Cargo.toml b/array-parameterized-test/Cargo.toml index 930c873d..13c8d495 100644 --- a/array-parameterized-test/Cargo.toml +++ b/array-parameterized-test/Cargo.toml @@ -8,9 +8,9 @@ edition.workspace = true license = "MIT" [dependencies] -proc-macro2 = "1.0.101" -quote = "1.0.40" -syn = { version = "2.0.106", features = ["full"] } +proc-macro2 = "1.0.83" +quote = "1.0.35" +syn = { version = ">= 1.0.0, < 3", features = ["full"] } [lib] proc-macro = true diff --git a/cpp/Cargo.toml b/cpp/Cargo.toml index 036ef377..1bf51b23 100644 --- a/cpp/Cargo.toml +++ b/cpp/Cargo.toml @@ -8,13 +8,13 @@ edition.workspace = true license.workspace = true [dependencies] -cxx = { version = "1.0", features = ["c++17"] } -delegate = "0.13.4" +cxx = { version = "1.0.142", features = ["c++17"] } +delegate = ">= 0.5.1, < 0.14" libloot = { path = ".." } libloot-ffi-errors = { path = "../ffi-errors" } [build-dependencies] -cxx-build = "1.0" +cxx-build = "1.0.142" [lib] crate-type = ["staticlib"] diff --git a/python/Cargo.toml b/python/Cargo.toml index c47d7302..6cafc160 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -15,8 +15,8 @@ crate-type = ["cdylib"] [dependencies] libloot = { path = ".." } libloot-ffi-errors = { path = "../ffi-errors" } -pyo3 = "0.25.0" -pyo3-log = "0.12.4" +pyo3 = ">= 0.23.3, < 0.26" +pyo3-log = "0.12" [lints] workspace = true