Skip to content

Commit 92ccfb6

Browse files
fix: downgrade breaking dependencies causing CI build failures
Downgraded `bincode` to 1.3.3, `ureq` to 2.9, and `rand` to 0.8 across the workspace, which were breaking the CI pipeline due to API incompatibilities. Updated `zip` crate API usage in `stdlib/src/compress.rs` to fix type inference issues caused by the `FileOptions` generics change. All tests and lints now pass. Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>
1 parent 9d9f21b commit 92ccfb6

7 files changed

Lines changed: 62 additions & 114 deletions

File tree

‎Cargo.lock‎

Lines changed: 52 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cli/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ anyhow = { workspace = true }
3838
rustyline = { workspace = true }
3939
toml = { workspace = true }
4040
indexmap = { workspace = true }
41-
bincode = "3.0.0"
41+
bincode = "1.3.3"
4242
dirs = "7.0"
4343
num_cpus = "1.15"
44-
ureq = { version = "3.4" }
44+
ureq = "2.9"
4545
rayon = "1.12.0"
4646

4747
[build-dependencies]

‎compiler/bytecode/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ techscript_syntax = { path = "../syntax" }
1111
techscript_ast = { path = "../ast" }
1212
techscript_ir = { path = "../ir" }
1313
serde = { workspace = true }
14-
bincode = "3.0.0"
14+
bincode = "1.3.3"
1515

1616
[dev-dependencies]
1717
techscript_errors = { path = "../errors" }
@@ -20,4 +20,4 @@ techscript_parser = { path = "../parser" }
2020
techscript_semantic = { path = "../semantic" }
2121
techscript_optimizer = { path = "../optimizer" }
2222
serde = { workspace = true }
23-
bincode = "3.0.0"
23+
bincode = "1.3.3"

‎runtime/vm/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ techscript_runtime = { path = "../runtime" }
1515
techscript_builtins = { path = "../builtins" }
1616
techscript_stdlib = { path = "../../stdlib" }
1717
serde = { workspace = true }
18-
bincode = "3.0.0"
18+
bincode = "1.3.3"
1919
thiserror = { workspace = true }
2020
indexmap = "2.0"
2121

‎stdlib/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ techscript_runtime = { path = "../runtime/runtime" }
1010
serde_json = { workspace = true }
1111
serde = { workspace = true }
1212
indexmap = { version = "2", features = ["serde"] }
13-
ureq = { version = "3.4", features = ["json"] }
13+
ureq = { version = "2.9", features = ["json"] }
1414
toml = { workspace = true }
1515
rusqlite = { version = "0.40", features = ["bundled"] }
1616
md5 = "0.8"
@@ -24,7 +24,7 @@ flate2 = "1.0"
2424
crc = "3.0"
2525
image = "0.25"
2626
tiny_http = "0.12"
27-
rand = "0.10"
27+
rand = "0.8"
2828
zip = "8.6"
2929
shlex = "2.0"
3030
url = "2.5"

‎stdlib/src/compress.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ impl StdlibRegistry {
208208
pub fn zip_dir(src_dir: &str, dst_file: &str) -> std::io::Result<()> {
209209
let file = File::create(dst_file)?;
210210
let mut zip = zip::ZipWriter::new(file);
211-
let options =
212-
zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
211+
let options = zip::write::SimpleFileOptions::default()
212+
.compression_method(zip::CompressionMethod::Deflated);
213213

214214
let walkdir = std::fs::read_dir(src_dir)?;
215215
for entry in walkdir {

‎tools/package-manager/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ serde = { workspace = true }
1010
serde_json = { workspace = true }
1111
toml = "1.1"
1212
anyhow = { workspace = true }
13-
ureq = { version = "3.4" }
13+
ureq = "2.9"
1414

1515
[[bench]]
1616
name = "capability_validation_bench"

0 commit comments

Comments
 (0)