Skip to content

Commit

Permalink
chore: dependency updates and version bump (0.3.0) (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e authored Oct 27, 2024
1 parent b340ff0 commit 7bdce02
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tonic-buf-build"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
description = "A build helper that integrates buf.build to tonic-build."
license = "MIT"
Expand All @@ -9,9 +9,9 @@ repository = "https://github.com/Valensas/tonic-buf-build"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tonic-build = "0.11"
tonic-build = "0.12"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
uuid = { version = "1.2", features = ["v4", "fast-rng"] }
prost-build = "0.12"
uuid = { version = "1.10", features = ["v4", "fast-rng"] }
prost-build = "0.13"
scopeguard = "1.2"
6 changes: 3 additions & 3 deletions examples/buf-work-yaml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tonic = {version = "0.10.0", features = ["tls"]}
tokio = {version = "1.28.2", features = ["full"]}
prost = "0.12.1"
tonic = {version = "0.12.3", features = ["tls"]}
tokio = {version = "1.40.0", features = ["full"]}
prost = "0.13.3"

[build-dependencies]
tonic-buf-build = {path = "../../"}
Expand Down
6 changes: 3 additions & 3 deletions examples/buf-yaml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.1.0"
edition = "2021"

[dependencies]
tonic = {version = "0.10.0", features = ["tls"]}
tokio = {version = "1.28.2", features = ["full"]}
prost = "0.12.1"
tonic = {version = "0.12.3", features = ["tls"]}
tokio = {version = "1.40.0", features = ["full"]}
prost = "0.13.3"

[build-dependencies]
tonic-buf-build = {path = "../../"}
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub fn compile_from_buf_workspace_with_config<P: AsRef<Path>>(
let protos = buf::ls_files(buf_dir)?;

match config {
None => tonic_builder.compile(&protos, &includes),
Some(config) => tonic_builder.compile_with_config(config, &protos, &includes),
None => tonic_builder.compile_protos(&protos, &includes),
Some(config) => tonic_builder.compile_protos_with_config(config, &protos, &includes),
}
.map_err(|e| TonicBufBuildError::new("error running tonic build", e.into()))
}
Expand Down Expand Up @@ -121,8 +121,8 @@ pub fn compile_from_buf_with_config<P: AsRef<Path>>(
let includes = [buf_dir, &export_dir];

match config {
None => tonic_builder.compile(&protos, &includes),
Some(config) => tonic_builder.compile_with_config(config, &protos, &includes),
None => tonic_builder.compile_protos(&protos, &includes),
Some(config) => tonic_builder.compile_protos_with_config(config, &protos, &includes),
}
.map_err(|e| TonicBufBuildError::new("error running tonic build", e.into()))
}

0 comments on commit 7bdce02

Please sign in to comment.