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

Exports APIs for core process. #2

Merged
merged 1 commit into from
Apr 9, 2023
Merged

Exports APIs for core process. #2

merged 1 commit into from
Apr 9, 2023

Conversation

zzzze
Copy link
Contributor

@zzzze zzzze commented Jan 28, 2023

Allow core process accesses the APIs of clipboard.

@HuakunShen
Copy link
Collaborator

HuakunShen commented Apr 6, 2023

Allow core process accesses the APIs of clipboard.
@zzzze Hi, thank you for the PR. May I ask what does the PR do in more details?

I am not very familiar with the Tauri toolcain.

Why do we need this? What does "Allow core process accesses the APIs of clipboard." mean?

The original way works. So I am not sure what this means.

Is there a documentation or example I can refer to?

Thanks

@zzzze
Copy link
Contributor Author

zzzze commented Apr 8, 2023

In Tauri, the core process written in Rust is the backend of the app. The APIs exported by [tauri::command] can only be invoked in the frontend. So this PR exports the APIs to Rust. I added a usecase in README already.

@HuakunShen HuakunShen merged commit 1a63665 into CrossCopy:main Apr 9, 2023
@HuakunShen
Copy link
Collaborator

In Tauri, the core process written in Rust is the backend of the app. The APIs exported by [tauri::command] can only be invoked in the frontend. So this PR exports the APIs to Rust. I added a usecase in README already.

I see, thanks for the explanation.

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

Successfully merging this pull request may close these issues.

3 participants