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

How do I convert a Rust string into a wasm local variable using walrus? #271

Open
clacladev opened this issue Aug 8, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@clacladev
Copy link

Summary

I have a Rust string I want to represent it in a wasm function body as a local variable. How do I go about it with walrus? Is there any helper?

Additional Details

I found one way which should add one char at the time into a string.
I found another way which uses module data to store the string.
Are any of these strategies correct?

Are there other crates that can help me if walrus cannot?

@clacladev clacladev added the question Further information is requested label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant