Skip to content

Experiment running wasm-bindgen generated bin in nodejs #12014

@FirelightFlagboy

Description

@FirelightFlagboy

Seems like we can generate nodejs compatible module with wasm-bindgen by using --target nodejs

The experimentation need to check the following:

  • Need to make HTTP call
  • Write/Read to file
  • Use sqlite

Nodejs seems to indicate that it's possible to run wasm code directly with it but we may need to use wasmtime to interact with the OS

Reason

Simplify the client binding by only depending on wasm-bindgen as the binding layer which allow for more complex object (class, ...) which would improve the developer experience

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-BindingsImpact: libparsec bindings (generator, electron, web, ...)I-JavascriptImpact: Javascript-related stuffI-RustImpact: Rust-related stuff

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions