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

What is a string? #60

Open
nothingismagick opened this issue Feb 24, 2023 · 1 comment
Open

What is a string? #60

nothingismagick opened this issue Feb 24, 2023 · 1 comment

Comments

@nothingismagick
Copy link
Sponsor Member

My only concern here is that we are not being specific about the string type here, for example:

https://github.com/tauri-apps/tauri-bindgen/blob/main/examples/basic/greet.wit#L2

@JonasKruckenberg
Copy link
Contributor

JonasKruckenberg commented Feb 24, 2023

Quoting the docs here https://github.com/tauri-apps/tauri-bindgen/blob/main/docs/WIT.md#strings 👀 does that answer your question or have I missed something?

Edit: On the topic of utf8 vs utf16, it makes more sense to pick utf8 since that's what rust expects and JS has good facilities for encoding strings to utf8 bytes (see TextEncoder and TextDecoder)

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

2 participants