Skip to content

Commit

Permalink
chore(build): Remove dependency on protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Jul 14, 2024
1 parent b0b84ec commit e7cd5e8
Show file tree
Hide file tree
Showing 6 changed files with 3,359 additions and 22 deletions.
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ optional = true

[dependencies]
yup-oauth2 = { version = "11", default-features = false, features = ["hyper-rustls", "service-account"] }
hyper = { version = "1.3.1", features = ["http1"] }
hyper-util = { version = "0.1", default-features = false, features = [
hyper = { version = "1.4.1", features = ["http1"] }
hyper-util = { version = "0.1.6", default-features = false, features = [
"client-legacy",
] }
thiserror = "1.0.59"
thiserror = "1.0.62"
tokio = { version = "1.38.0", default-features = false, features = [
"rt-multi-thread",
"net",
Expand All @@ -45,11 +45,11 @@ tokio = { version = "1.38.0", default-features = false, features = [
] }
tokio-stream = "0.1.15"
async-stream = "0.3.5"
reqwest = { version = "0.12.4", default-features = false, features = ["json"] }
url = "2.5.0"
serde = "1.0.203"
serde_json = "1.0.117"
log = "0.4.21"
reqwest = { version = "0.12.5", default-features = false, features = ["json"] }
url = "2.5.2"
serde = "1.0.204"
serde_json = "1.0.120"
log = "0.4.22"
time = { version = "0.3.36", features = [
"local-offset",
"serde",
Expand All @@ -58,10 +58,10 @@ time = { version = "0.3.36", features = [
cloud-storage = { version = "0.11.1", features = [
"global-client",
], optional = true }
async-trait = "0.1.80"
async-trait = "0.1.81"
dyn-clone = "1.0.17"
prost = "0.13"
prost-types = "0.13"
prost = "0.13.1"
prost-types = "0.13.1"
tonic = { version = "0.12", features = ["transport", "tls", "tls-roots"] }

[dev-dependencies]
Expand Down
12 changes: 11 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
// The gRPC Storage Write API is vendored in `src/google` to avoid
// depending on protoc in GitHub Actions.
//
// To regenerate the gRPC Storage Write API from the proto file:
// - Comment the build_transport(false) line below.
// - Run `cargo build` to regenerate the API.
// - Uncomment the build_transport(false) line below.
// - Commit the changes.
tonic_build::configure()
.build_transport(false)
.build_server(false)
.out_dir("src/google")
.compile(
&["googleapis/google/cloud/bigquery/storage/v1/storage.proto"],
&["googleapis"],
)?;
Ok(())
}
}
Loading

0 comments on commit e7cd5e8

Please sign in to comment.