Skip to content

Commit 147c94c

Browse files
authored
tonic-build/tonic-prost-build: Fix features docs (#2434)
tonic-build: Only has the tranport feature now. It does not have prost or cleanup-markdown. tonic-prost-build: It does not have the prost feature.
1 parent 2c01429 commit 147c94c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tonic-build/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
# tonic-build
22

3-
Provides code generation for service stubs to use with tonic. For protobuf compilation via prost, use the `tonic-prost-build` crate.
3+
Provides code generation for service stubs to use with tonic. For protobuf compilation via prost, use the `tonic-prost-build` crate instead.
44

55
# Feature flags
66

7-
- `cleanup-markdown`: Enables cleaning up documentation from the generated code.
8-
Useful when documentation of the generated code fails `cargo test --doc` for example.
9-
The `prost` feature must be enabled to use this feature.
10-
- `prost`: Enables usage of prost generator (enabled by default).
117
- `transport`: Enables generation of `connect` method using `tonic::transport::Channel`
128
(enabled by default).
139

tonic-prost-build/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fn main() {
2020

2121
## Features
2222

23-
- `prost`: Enables prost-based protobuf code generation (enabled by default)
2423
- `transport`: Enables transport layer code generation
2524
- `cleanup-markdown`: Enables markdown cleanup in generated documentation
2625

0 commit comments

Comments
 (0)