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
//!