-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43: [protoc-gen-tonic] Add option to disable transport generation r=neoeinstein a=stan-irl ## Background - #42 - Currently, transport is always generated for tonic grpc services which is a problem for consumers who want to compile for wasm. The latest version `tonic-build="0.8.4"` allows us to disable this ## Changes - Update tonic-build to v0.8.4 - Add `tonic_opt` option `no_transport` - Migrate from deprecated `generate` APIs to `tonic_build::CodeGenBuilder` - Update `prost-build` ti 0.11.4 in all crates - This was required for cargo crate resolution to succeed - Update README ## Tests -[x] `cargo test` - everything is passing -[x] Used this package to regenerate my own protos - [x] Confirmed that the `connect()` function wasnt generated - Just an FYI that there is now `#[allow(clippy::derive_partial_eq_without_eq)]` macros in the generated code Co-authored-by: Stan Tsouvallas <[email protected]> Co-authored-by: Marcus Griep <[email protected]>
- Loading branch information
Showing
8 changed files
with
175 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ members = [ | |
[profile.release] | ||
codegen-units = 1 | ||
lto = "fat" | ||
debug = true | ||
debug = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.