Skip to content

Trunk build output as a cargo dependency #1000

@alexforencich

Description

@alexforencich

I am working on a rust application that has to serve up a web UI which is also written in rust (egui) and compiled to wasm. Ideally, the wasm code and associated assets would be embedded in the executable with something like rust-embed, and then the executable would serve up both the embedded files as well as a websocket. Does anyone know if there is a nice way to set up cargo to automatically run trunk and build the wasm portion as part of building the server executable?

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