Skip to content

Commit 9a9da21

Browse files
authored
Merge pull request #206 from plaans/deps-update
build: Update dependencies and rust edition
2 parents 08435b9 + 477e2a8 commit 9a9da21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+951
-1145
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,44 @@ anyhow = { version = "1.0" }
2525
arcstr = { version = "1.2" }
2626
async-trait = "0.1"
2727
bumpalo = { version = "3.19" }
28-
clap = { version = "4.4", features = ["derive"] }
28+
clap = { version = "4.5", features = ["derive"] }
2929
crossbeam-channel = "0.5"
3030
derivative = "2.2"
3131
itertools = { version = "0.14" }
3232
fixedbitset = { version = "0.5.7", default-features = false }
3333
format_num = "0.1.0"
34-
hashbrown = "0.15"
34+
hashbrown = "0.16"
3535
im = "15.1"
36-
lru = "0.14"
37-
malachite = "0.4.14"
38-
num-rational = { version = "0.4.1" }
39-
num-integer = { default-features = false, version = "0.1.44" }
40-
pathfinding = "4.9.1"
41-
prost = { version = "0.12" }
42-
rand = { version = "0.8", features = ["small_rng"] }
36+
lru = "0.16"
37+
malachite = "0.9.0"
38+
num-rational = { version = "0.4.2" }
39+
num-integer = { default-features = false, version = "0.1.46" }
40+
pathfinding = "4.14.0"
41+
prost = { version = "0.14" }
42+
rand = { version = "0.9", features = ["small_rng"] }
4343
regex = { version = "1" }
4444
smallvec = { version = "1.15", features = ["union"] }
4545
structopt = "0.3"
46-
streaming-iterator = "0.1.5"
47-
test_each_file = "0.3.4"
48-
tonic = "0.11.0"
49-
tonic-build = "0.11.0"
50-
tokio = { default-features = false, version = "1.38.0", features = [
46+
streaming-iterator = "0.1.9"
47+
test_each_file = "0.3.6"
48+
tonic = "0.14.2"
49+
tonic-prost = "0.14.2"
50+
tonic-prost-build = "0.14.2"
51+
tokio = { default-features = false, version = "1.49.0", features = [
5152
"rt-multi-thread",
5253
"macros",
5354
] }
5455
tokio-stream = { default-features = false, version = "0.1" }
5556
tracing = { version = "0.1", features = ["release_max_level_debug"] }
5657
tracing-subscriber = "0.3"
57-
transitive = "1.1.0"
58+
transitive = "1.2.0"
5859
vec_map = "0.8"
59-
walkdir = "2.3"
60-
zip = { default-features = false, features = ["deflate"], version = "2.1.3" }
61-
derive_more = { version = "1.0", features = ["display"] }
60+
walkdir = "2.5"
61+
zip = { default-features = false, features = ["deflate"], version = "7.0.0" }
62+
derive_more = { version = "2.1", features = ["display"] }
6263
thiserror = "2"
63-
annotate-snippets = "0.12.4"
64-
idmap = "0.3.0"
64+
annotate-snippets = "0.12.10"
65+
idmap = "0.3.5"
6566
compact_str = "0.9.0"
6667

6768
[profile.dev]

aries_fzn/src/fzn/solve/solve_item.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ use crate::fzn::var::BasicVar;
66
/// ```flatzinc
77
/// solve satisfy;
88
/// ```
9-
#[derive(PartialEq, Debug)]
9+
#[derive(PartialEq, Debug, Default)]
1010
pub enum SolveItem {
11+
#[default]
1112
Satisfy,
1213
Optimize(Objective),
1314
}
@@ -32,12 +33,6 @@ impl SolveItem {
3233
}
3334
}
3435

35-
impl Default for SolveItem {
36-
fn default() -> Self {
37-
Self::Satisfy
38-
}
39-
}
40-
4136
#[cfg(test)]
4237
mod tests {
4338
use crate::fzn::domain::BoolDomain;

env_param/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
once_cell = "1.5.2"
10+
once_cell = "1.21.3"

planning/grpc/api/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ version = "0.1.0"
88
[dependencies]
99
prost = { workspace = true }
1010
tonic = { workspace = true }
11+
tonic-prost = { workspace = true }
1112
itertools = { workspace = true }
1213

1314
[build-dependencies]
14-
tonic-build = { workspace = true, optional = true }
15+
tonic-prost-build = { workspace = true, optional = true }
1516

1617
[features]
17-
generate_bindings = ["tonic-build"]
18+
generate_bindings = ["tonic-prost-build"]

planning/grpc/api/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
55
let proto_file = "src/unified_planning.proto";
66

77
let x: [&str; 0] = [];
8-
tonic_build::configure()
8+
tonic_prost_build::configure()
99
.build_server(true)
1010
.build_client(true)
1111
.out_dir("src/")
12-
.compile(&[proto_file], &x)
12+
.compile_protos(&[proto_file], &x)
1313
.unwrap_or_else(|e| panic!("Failed to compile proto: {}", e));
1414

1515
fs::rename("src/_.rs", "src/unified_planning.rs")?;

0 commit comments

Comments
 (0)