previous definition of the macro __cmd__greet
here
#4665
-
When I add #[tauri::command]
pub fn greet(name: &str) -> DirEntry {
format!("Hello, {}!", name);
DirEntry::new("a")
} error
Since remove pub the error is gone, I have to put all the I want to put |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Jul 13, 2022
Replies: 1 comment 3 replies
-
This is only an issue if you use |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
gensmusic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is only an issue if you use
pub
on commands that are in the main file. If you outsource them in a separate module/file, pub works fine again.