Skip to content

Commit

Permalink
chore(test): Use compile_protos instead of providing default config
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 5, 2024
1 parent c16ec31 commit 1591e6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion tests/skip_debug/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ prost = "0.13"
tonic = { path = "../../tonic" }

[build-dependencies]
prost-build = "0.13"
tonic-build = { path = "../../tonic-build" }
3 changes: 1 addition & 2 deletions tests/skip_debug/build.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
fn main() {
let config = prost_build::Config::default();
tonic_build::configure()
.skip_debug("test.Test")
.skip_debug("test.Output")
.build_client(true)
.build_server(true)
.compile_protos_with_config(config, &["proto/test.proto"], &["proto"])
.compile_protos(&["proto/test.proto"], &["proto"])
.unwrap();
}

0 comments on commit 1591e6c

Please sign in to comment.