diff --git a/Cargo.toml b/Cargo.toml index b80dff37..167651ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ jrsonnet-types = { path = "./crates/jrsonnet-types", version = "0.5.0-pre95" } jrsonnet-gcmodule = "0.3.6" +# <= 1.0.171 due to serde-rs/serde#2538 +serde = { version = ">= 1.0.126, <= 1.0.171" } + #[profile.test] #opt-level = 1 diff --git a/cmds/jrsonnet/Cargo.toml b/cmds/jrsonnet/Cargo.toml index ce098f3e..659e751a 100644 --- a/cmds/jrsonnet/Cargo.toml +++ b/cmds/jrsonnet/Cargo.toml @@ -42,3 +42,5 @@ mimallocator = { version = "0.1.3", optional = true } thiserror = "1.0" clap = { version = "4.1", features = ["derive"] } clap_complete = { version = "4.1" } +serde_json = "1.0.104" +serde = { workspace = true, features = ["derive"] } diff --git a/crates/jrsonnet-evaluator/Cargo.toml b/crates/jrsonnet-evaluator/Cargo.toml index fa653582..f1664d45 100644 --- a/crates/jrsonnet-evaluator/Cargo.toml +++ b/crates/jrsonnet-evaluator/Cargo.toml @@ -47,7 +47,7 @@ thiserror = "1.0" # Friendly errors strsim = { version = "0.10.0" } -serde = "1.0" +serde.workspace = true anyhow = { version = "1.0", optional = true } # Serialized stdlib diff --git a/crates/jrsonnet-interner/Cargo.toml b/crates/jrsonnet-interner/Cargo.toml index 64a8307b..716db525 100644 --- a/crates/jrsonnet-interner/Cargo.toml +++ b/crates/jrsonnet-interner/Cargo.toml @@ -19,7 +19,7 @@ serde = ["dep:serde"] [dependencies] jrsonnet-gcmodule.workspace = true -serde = { version = "1.0", optional = true } +serde = { workspace = true, optional = true } structdump = { version = "0.2.0", optional = true } rustc-hash = "1.1" diff --git a/crates/jrsonnet-parser/Cargo.toml b/crates/jrsonnet-parser/Cargo.toml index d22f1448..599b1827 100644 --- a/crates/jrsonnet-parser/Cargo.toml +++ b/crates/jrsonnet-parser/Cargo.toml @@ -35,5 +35,5 @@ static_assertions = "1.1" peg = "0.8.1" -serde = { version = "1.0", features = ["derive", "rc"], optional = true } +serde = { workspace = true, features = ["derive", "rc"], optional = true } structdump = { version = "0.2.0", features = ["derive"], optional = true } diff --git a/crates/jrsonnet-stdlib/Cargo.toml b/crates/jrsonnet-stdlib/Cargo.toml index fc06a11e..6f1d9dd3 100644 --- a/crates/jrsonnet-stdlib/Cargo.toml +++ b/crates/jrsonnet-stdlib/Cargo.toml @@ -30,7 +30,7 @@ jrsonnet-gcmodule.workspace = true # Used for stdlib AST serialization bincode = { version = "1.3", optional = true } # Used both for stdlib AST serialization and std.parseJson/std.parseYaml -serde = "1.0" +serde.workspace = true # std.md5 md5 = "0.7.0" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 9f8e00f0..4a4b6d9a 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -8,4 +8,4 @@ publish = false jrsonnet-evaluator.workspace = true jrsonnet-gcmodule.workspace = true jrsonnet-stdlib.workspace = true -serde = "1.0.142" +serde.workspace = true