Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tonic-prost-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tonic-prost-build"
version = "0.14.1"
version = "0.15.0"
authors = ["Lucio Franco <luciofranco14@gmail.com>"]
edition = "2021"
license = "MIT"
Expand Down
8 changes: 5 additions & 3 deletions tonic-prost-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,10 @@ impl Builder {
}

/// Compile the .proto files and execute code generation.
pub fn compile_protos<P>(self, protos: &[P], includes: &[P]) -> io::Result<()>
pub fn compile_protos<P, I>(self, protos: &[P], includes: &[I]) -> io::Result<()>
where
P: AsRef<Path>,
I: AsRef<Path>,
{
self.compile_with_config(Config::new(), protos, includes)
}
Expand All @@ -700,14 +701,15 @@ impl Builder {
///
/// Note: When using a custom config, any disable_comments settings on the Builder will be ignored
/// to preserve the disable_comments already configured on the provided Config.
pub fn compile_with_config<P>(
pub fn compile_with_config<P, I>(
self,
mut config: Config,
protos: &[P],
includes: &[P],
includes: &[I],
) -> io::Result<()>
where
P: AsRef<Path>,
I: AsRef<Path>,
{
let out_dir = if let Some(out_dir) = self.out_dir.as_ref() {
out_dir.clone()
Expand Down
Loading