chore(docs): Update tonic-build docs (#22)

This commit is contained in:
Lucio Franco
2019-10-01 19:34:45 -04:00
committed by GitHub
parent 09c77d4713
commit 8f80d0f6d1
2 changed files with 17 additions and 1 deletions
+17
View File
@@ -1,6 +1,23 @@
//! `tonic-build` compiles `proto` files via `prost` and generates service stubs
//! and proto definitiones for use with `tonic`.
//!
//! # Features
//!
//! `tonic-build` only comes with one `rustfmt` feature which enables the usage of
//! the `rustfmt` binary to format the generated code. This is enabled by default.
//!
//! # Required dependencies
//!
//! ```toml
//! [dependencies]
//! bytes = <bytes-version>
//! tonic = <tonic-version>
//! prost = <prost-version>
//!
//! [build-dependencies]
//! tonic-build = <tonic-version>
//! ```
//!
//! # Examples
//! Simple
//!
-1
View File
@@ -48,7 +48,6 @@ path = "src/tls/server.rs"
tonic = { path = "../tonic", features = ["rustls"] }
bytes = "0.4"
prost = "0.5"
prost-derive = "0.5"
tokio = "=0.2.0-alpha.6"
futures-preview = { version = "=0.3.0-alpha.19", default-features = false, features = ["alloc"]}