Skip to content

Generate JS bindings that automatically GC rust-owned structs #40

@matheus23

Description

@matheus23

Currently, PublicDirectorys that are passed from rust to JS will have a free() function generated with them, which will clear up memory used inside the WASM memory & must be used to prevent memory leaks.

We should figure out a way to call wasm-bindgen with the --weak-refs option. Unfortunately wasm-pack doesn't support that yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions