Add some doc examples (#9)

* doc examples for tonic::Streaming

* from http doc

* more docs

* use same export pattern

* interceptor doc WIP

* remove unfinished doc examples

* recommended changes

* remove unnecessary prost refs
This commit is contained in:
John Doneth
2019-09-25 11:36:23 -04:00
committed by Lucio Franco
parent 25e4dcc5d9
commit 646796f248
5 changed files with 45 additions and 2 deletions
-1
View File
@@ -67,7 +67,6 @@ impl Builder {
}
/// Compile the .proto files and execute code generation.
#[cfg_attr(not(feature = "rustfmt"), allow(unused_variables))]
pub fn compile<P: AsRef<Path>>(self, protos: &[P], includes: &[P]) -> io::Result<()> {
let mut config = Config::new();