Skip to content

How to optimise wasm crate in a workspace? #228

@antonoal

Description

@antonoal

Hi

I've got a project with two crates - server and frontend (wasm).
My docker file does this:

RUN cd frontend && trunk build --release
RUN cargo build --release

When I changed the file to use cargo chef I can see the effect when the server side is being built (the later RUN) but not the frontend. The first RUN still recompiles all its dependencies.

Do you have ideas how I can cache the dependencies for trunk build as well?

Thanks, Ales

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