On 6/13/26 12:41 PM, Miguel Ojeda wrote:
Hi Malte,

Some quick notes...

On Fri, Jun 12, 2026 at 3:29 PM Malte Wechter <[email protected]> wrote:
+/// ```ignore
Empty /// before examples.

+///     // This will extract "foo: <field>" into a variable named "foo".
` instead of "

i.e. please use Markdown

+///```
Missing space indentation

+/// Expands the following output:
+///    let item_type = {
Missing example block, both at the beginning and the end.

Please double-check by generating the docs and looking at how they
appear in the browser.

The prefix of the title should likely be `rust: configfs:`.

Thanks!

Cheers,
Miguel
As of now doc strings are not generated for private items in the macros crate. I am moving the `parse_ordered_fields!` macro into macros/helpers.rs but this means the doc strings are not generated for the macro anymore. The `parse_ordered_fields!` macro is a larger helper function, and the doc strings are relevant and helpful for macro developers that wants to use it.

You can enable documenting private items:

diff --git a/rust/Makefile b/rust/Makefile
index b361bfedfdf0..b4239443307e 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -147,6 +147,7 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $<
     OBJTREE=$(abspath $(objtree)) \
     $(RUSTDOC) $(filter-out $(skip_flags) --remap-path-scope=%,$(if $(rustdoc_host),$(rust_common_flags),$(rust_flags))) \
         $(rustc_target_flags) -L$(objtree)/$(obj) \
+        --document-private-items \
         -Zunstable-options --generate-link-to-definition \
         --output $(rustdoc_output) \
         --crate-name $(subst rustdoc-,,$@) \

But this enables _all_ private items to get rendered, which is not ideal. How should i proceed?
Best regards,

Malte



Reply via email to