Repository: DioxusLabs/dioxus (language: rust)

Issue:
Auto-generated Dioxus Props Structs cause #[deny(missing_docs)] to fail
**Problem**

The auto-generated props structs have doc comments on the structs themselves (thanks to https://github.com/DioxusLabs/dioxus/pull/1775), but don't have any doc comments on the fields, which are public fields inside a public struct, so `#[deny(missing_docs)]` fails.

There isn't an easy way to filter out these errors only for the dioxus props structs and keep them for other code, so code that implements components can't use `#[warn(missing_docs)]` at all.

**Steps To Reproduce**

Steps to reproduce the behavior:

- configure `#[deny(missing_docs)]` or Cargo.toml equivalent
- add public component to public module
```rs
#[component]
pub fn MyComponent(some_arg: ReadOnlySignal<i64>) -> Element {rsx!{"x"}}
```
- get `missing documentation for struct field`

**Expected behavior**

Generate a doc comment for each field of the props struct

**Screenshots**

<!-- If applicable, add screenshots to help explain your problem. -->

![Image](https://github.com/user-attachments/assets/9651c91c-bca1-44fc-b4bc-e91a9a6fceef)

Generated site with no doc for the `_some_arg` field:
![Image](https://github.com/user-attachments/assets/e3342436-d4a8-4693-9e4f-fb4c597c2d1a)

**Environment:**
 - Dioxus version:  0.6.2
 - Rust version:   1.84
 - OS info:      linux
 - App platform:    all

**Questionnaire**
<!-- If you feel up to the challenge, please uncomment one of the lines below: -->

<!-- I'm interested in fixing this myself but don't know where to start -->
<!-- I would like to fix and I have a solution -->
<!-- I don't have time to fix this right now, but maybe later -->



Discussion / hints:

Fix patch:
diff --git a/packages/core-macro/src/component.rs b/packages/core-macro/src/component.rs
index fb8cf0c204..0228f1ffdf 100644
--- a/packages/core-macro/src/component.rs
+++ b/packages/core-macro/src/component.rs
@@ -47,6 +47,7 @@ impl ToTokens for ComponentBody {
                 let props_struct = self.props_struct();
                 quote! {
                     #[doc = #doc]
+                    #[allow(missing_docs)]
                     #props_struct
                 }
             }


Test patch: