Skip to content

Question: How to send Uint8Array from Rust to JavaScript fast #322

@hanakla

Description

@hanakla

Hello! I am currently researching the possibility of using Deno's WebGPU functionality on Adobe Illustrator using rustyscript.

I've been touching the current rustyscript API and it seems that json_args! does not allow me to pass large binary data like ArrayBuffer or Uint8Array to the TypeScript runtime without converting it to JSON. (It doesn't look like it would be easy from TypeScript to Rust either)

Some APIs like Deno.readFile in Deno seem to be able to transfer huge data from the Rust side to the TypeScript runtime, but how can we do the equivalent in rustyscript?

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions