Skip to content

Commit

Permalink
feat(build): Make cleanup-markdown feature additive (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Oct 22, 2024
1 parent d40f610 commit 9989968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tonic-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ syn = "2.0"
[features]
default = ["transport", "prost"]
prost = ["prost-build", "dep:prost-types"]
cleanup-markdown = ["prost", "prost-build/cleanup-markdown"]
cleanup-markdown = ["prost-build?/cleanup-markdown"]
transport = []

[package.metadata.docs.rs]
Expand Down
3 changes: 2 additions & 1 deletion tonic-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
//! # Feature flags
//!
//! - `cleanup-markdown`: Enables cleaning up documentation from the generated code. Useful
//! when documentation of the generated code fails `cargo test --doc` for example.
//! when documentation of the generated code fails `cargo test --doc` for example. The
//! `prost` feature must be enabled to use this feature.
//! - `prost`: Enables usage of prost generator (enabled by default).
//! - `transport`: Enables generation of `connect` method using `tonic::transport::Channel`
//! (enabled by default).
Expand Down

0 comments on commit 9989968

Please sign in to comment.