Skip to content

Commit

Permalink
chore(doc): Add document about how prost-build config is used (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 6, 2024
1 parent 4f39fdd commit 2464f08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tonic-build/src/prost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ impl Builder {
self.compile_protos(protos, includes)
}

/// Compile the .proto files and execute code generation using a
/// custom `prost_build::Config`.
/// Compile the .proto files and execute code generation using a custom
/// `prost_build::Config`. The provided config will be updated with this builder's config.
#[deprecated(since = "0.12.3", note = "renamed to `compile_protos_with_config()`")]
pub fn compile_with_config(
self,
Expand All @@ -631,8 +631,8 @@ impl Builder {
self.compile_protos_with_config(Config::new(), protos, includes)
}

/// Compile the .proto files and execute code generation using a
/// custom `prost_build::Config`.
/// Compile the .proto files and execute code generation using a custom
/// `prost_build::Config`. The provided config will be updated with this builder's config.
pub fn compile_protos_with_config(
self,
mut config: Config,
Expand Down

0 comments on commit 2464f08

Please sign in to comment.