Skip to content

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

@clacladev

Description

@clacladev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions