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
29 changes: 29 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ let file_descriptors = protox::compile(["root.proto"], ["."]).unwrap();
prost_build::compile_fds(file_descriptors).unwrap();
```

Usage with [`tonic-build`](https://crates.io/crates/tonic-build):
Usage with [`tonic-prost-build`](https://crates.io/crates/tonic-prost-build):

```rust
let file_descriptors = protox::compile(["root.proto"], ["."]).unwrap();

tonic_build::configure()
tonic_prost_build::configure()
.build_server(true)
.compile_fds(file_descriptors)
.unwrap();
Expand Down Expand Up @@ -96,4 +96,4 @@ dual licensed as above, without any additional terms or conditions.
## Related projects

* [prost](https://crates.io/crates/prost) - a protocol buffers implementation for the Rust Language
* [protoxy](https://github.com/tardyp/protoxy) - python bindings for protox
* [protoxy](https://github.com/tardyp/protoxy) - python bindings for protox
2 changes: 1 addition & 1 deletion protox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ serde_yaml = "0.9.34"
similar-asserts = { version = "1.2.0" }
tempfile = "3.10.1"
serde_json = "1.0.117"
# tonic-build = "0.12.3"
tonic-prost-build = { version = "0.14", default-features = false }

[package.metadata.release]
tag-name = "{{version}}"
Expand Down
6 changes: 3 additions & 3 deletions protox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
//! prost_build::compile_fds(file_descriptors).unwrap();
//! ```
//!
//! Usage with [`tonic-build`](https://crates.io/crates/tonic-build):
//! Usage with [`tonic-prost-build`](https://crates.io/crates/tonic-prost-build):
//!
//! ```rust,ignore
//! ```rust
//! # use std::{env, fs, path::PathBuf};
//! # let tempdir = tempfile::TempDir::new().unwrap();
//! # env::set_current_dir(&tempdir).unwrap();
Expand All @@ -30,7 +30,7 @@
//!
//! let file_descriptors = protox::compile(["root.proto"], ["."]).unwrap();
//!
//! tonic_build::configure()
//! tonic_prost_build::configure()
//! .build_server(true)
//! .compile_fds(file_descriptors)
//! .unwrap();
Expand Down
Loading