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

Can’t use tauri::State<SomePrivateType> as function arg #142

Open
oscartbeaumont opened this issue Oct 29, 2024 · 2 comments
Open

Can’t use tauri::State<SomePrivateType> as function arg #142

oscartbeaumont opened this issue Oct 29, 2024 · 2 comments

Comments

@oscartbeaumont
Copy link
Member

Probs due to nested module that the macro creates.

@oscartbeaumont
Copy link
Member Author

This is also a problem with the return type.

@oscartbeaumont
Copy link
Member Author

oscartbeaumont commented Nov 20, 2024

Same thing on Tauri functions.

error[E0603]: macro import `__specta__fn__sfsync_upload_to_show` is private
  --> /Users/oscar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/specta-2.0.0-rc.20/src/function/mod.rs:57:23
   |
57 |               $($path)* [<__specta__fn__ $last>]!(@export_fn; $($full)*)
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^ private macro import
   |
  ::: src-tauri/src/lib.rs:16:19
   |
16 |           .commands(collect_commands![
   |  ___________________-
17 | |             greet,
18 | |             discovery::listen,
19 | |             discovery::unlisten,
...  |
27 | |             sfsync::sfsync_upload_to_show
28 | |         ])
   | |_________- macro `__specta__fn__sfsync_upload_to_show` is not publicly re-exported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant