Skip to content

Commit 2858b0c

Browse files
authored
Merge pull request #47 from blockscout/lok52/bump-tonic
chore: bump tonic and prost
2 parents d246b9d + 14c16f0 commit 2858b0c

File tree

13 files changed

+2645
-2626
lines changed

13 files changed

+2645
-2626
lines changed

Cargo.toml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.2.3"
12+
version = "0.3.0"
1313
edition = "2021"
1414
license = "MIT"
1515
repository = "https://github.com/blockscout/actix-prost"
1616
exclude = ["tests"]
1717

1818
[workspace.dependencies]
19-
actix-prost = { version = "0.2.3", path = "actix-prost" }
20-
actix-prost-build = { version = "0.2.3", path = "actix-prost-build" }
21-
actix-prost-macros = { version = "0.2.3", path = "actix-prost-macros" }
22-
convert-trait = { version = "0.2.3", path = "actix-prost-convert-trait", package = "actix-prost-convert-trait" }
19+
actix-prost = { version = "0.3.0", path = "actix-prost" }
20+
actix-prost-build = { version = "0.3.0", path = "actix-prost-build" }
21+
actix-prost-macros = { version = "0.3.0", path = "actix-prost-macros" }
22+
convert-trait = { version = "0.3.0", path = "actix-prost-convert-trait", package = "actix-prost-convert-trait" }
2323

2424
actix-http = { version = "3" }
2525
actix-web = { version = "4" }
@@ -32,9 +32,9 @@ http = { version = "1.2" }
3232
pretty_assertions = { version = "1.4" }
3333
prettyplease = { version = "0.2" }
3434
proc-macro2 = { version = "1.0" }
35-
prost = { version = "0.13" }
36-
prost-build = { version = "0.13" }
37-
prost-reflect = { version = "0.14.4" }
35+
prost = { version = "0.14" }
36+
prost-build = { version = "0.14" }
37+
prost-reflect = { version = "0.16" }
3838
quote = { version = "1.0" }
3939
reqwest = { version = "0.12" }
4040
serde = { version = "1" }
@@ -44,8 +44,9 @@ serde_yaml = { version = "0.9" }
4444
syn = { version = "2.0" }
4545
thiserror = { version = "2.0" }
4646
tokio = { version = "1" }
47-
tonic = { version = "0.12" }
48-
tonic-build = { version = "0.12" }
47+
tonic = { version = "0.14" }
48+
tonic-prost = { version = "0.14" }
49+
tonic-prost-build = { version = "0.14" }
4950
url = { version = "2" }
5051
chrono = { version = "0.4", features = ["serde"] }
5152
uuid = { version = "1.0"}

actix-prost-convert-trait/src/datetime.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ impl TryConvert<String> for NaiveDateTime {
7878
}
7979
}
8080

81-
8281
// implemented via Debug according to the implementation of the serde module
8382
// https://github.com/chronotope/chrono/blob/e632ffd3b89d3cfaa96776f2368ee4c21a972766/src/naive/datetime/serde.rs#L6-L26
8483
// https://docs.rs/chrono/latest/chrono/naive/struct.NaiveDateTime.html#impl-Debug-for-NaiveDateTime
@@ -213,7 +212,9 @@ mod tests {
213212
let string = String::try_convert(datetime).unwrap();
214213
assert_eq!(string, "2021-01-01T00:00:00.123456789+00:00");
215214

216-
let datetime = "2021-01-01T00:00:00.123456789".parse::<NaiveDateTime>().unwrap();
215+
let datetime = "2021-01-01T00:00:00.123456789"
216+
.parse::<NaiveDateTime>()
217+
.unwrap();
217218
let string = String::try_convert(datetime).unwrap();
218219
assert_eq!(string, "2021-01-01T00:00:00.123456789");
219220
}

tests/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ serde_json = { workspace = true }
2222
serde_with = { workspace = true, features = [ "base64" ] }
2323
tokio = { workspace = true, features = [ "rt-multi-thread", "macros" ] }
2424
tonic = { workspace = true }
25+
tonic-prost = { workspace = true }
2526
chrono = { workspace = true, features = ["serde"] }
2627
uuid = { workspace = true, features = ["serde"] }
2728
rust_decimal = { workspace = true, features = ["serde"] }
@@ -30,7 +31,7 @@ rust_decimal = { workspace = true, features = ["serde"] }
3031
[build-dependencies]
3132
actix-prost-build = { workspace = true, features = [ "conversions" ] }
3233
prost-build = { workspace = true }
33-
tonic-build = { workspace = true }
34+
tonic-prost-build = { workspace = true }
3435

3536
[dev-dependencies]
3637
pretty_assertions = { workspace = true }

tests/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn compile(
5151

5252
fn main() -> Result<(), Box<dyn std::error::Error>> {
5353
let gens = Box::new(GeneratorList::new(vec![
54-
tonic_build::configure().service_generator(),
54+
tonic_prost_build::configure().service_generator(),
5555
Box::new(ActixGenerator::new("proto/http_api.yaml").unwrap()),
5656
]));
5757
compile(

0 commit comments

Comments
 (0)