diff --git a/docs.md b/docs.md index cf55ba2..7dfa392 100644 --- a/docs.md +++ b/docs.md @@ -481,6 +481,9 @@ line_length = 80 # default: 2 tab_width = 3 +# Include doc comments from Rust as documentation +documentation = true + # How the generated documentation should be commented. # # possible values: diff --git a/src/bindgen/config.rs b/src/bindgen/config.rs index f89fb6e..6add00e 100644 --- a/src/bindgen/config.rs +++ b/src/bindgen/config.rs @@ -930,7 +930,7 @@ pub struct Config { pub constant: ConstantConfig, /// Preprocessor defines to use when generating #ifdef's for #[cfg] pub defines: HashMap, - /// Include doc comments from rust as documentation + /// Include doc comments from Rust as documentation pub documentation: bool, /// How documentation comments should be styled. pub documentation_style: DocumentationStyle, diff --git a/template.toml b/template.toml index 6bbbb51..95669ad 100644 --- a/template.toml +++ b/template.toml @@ -34,6 +34,7 @@ after_includes = "" braces = "SameLine" line_length = 100 tab_width = 2 +documentation = true documentation_style = "auto" line_endings = "LF" # also "CR", "CRLF", "Native"