Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix disable_comments comment #738

Merged
merged 2 commits into from Oct 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions prost-build/src/lib.rs
Expand Up @@ -488,10 +488,13 @@ impl Config {
/// disable doctests for the crate with a [Cargo.toml entry][2]. If neither of these options
/// are possible, then omit comments on generated code during doctest builds:
///
/// ```rust,ignore
/// ```rust,no_run
/// # fn main() -> std::io::Result<()> {
/// let mut config = prost_build::Config::new();
/// config.disable_comments(".");
/// config.disable_comments(&["."]);
/// config.compile_protos(&["src/frontend.proto", "src/backend.proto"], &["src"])?;
/// # Ok(())
/// # }
/// ```
///
/// As with other options which take a set of paths, comments can be disabled on a per-package
Expand Down