Skip to content

Commit d4cdf80

Browse files
authored
feat(macros): hide command macro from docs, closes #4550 (#4556)
1 parent 35b5378 commit d4cdf80

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎.changes/doc-hide-command-macro.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-macros": patch
3+
---
4+
5+
Add `#[doc(hidden)]` attribute to the `#[command]` generated macro.

‎core/tauri-macros/src/command/wrapper.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ pub fn wrapper(attributes: TokenStream, item: TokenStream) -> TokenStream {
7878
#function
7979

8080
#maybe_macro_export
81+
#[doc(hidden)]
8182
macro_rules! #wrapper {
8283
// double braces because the item is expected to be a block expression
8384
($path:path, $invoke:ident) => {{

‎examples/api/src-tauri/Cargo.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)