I have two crates in a workspace: backend server and wasm frontend (and a shared crate for the API types).
I want to use the following profile only for the frontend crate:
[profile.release]
lto = true
opt-level = "z"
I only want to optimize my frontend for size, but the backend server for speed.
But:
warning: profiles for the non root package will be ignored, specify profiles at the workspace root
Why can't this be allowed?
I'd really like to avoid having to split the frontend off into a separate workspace, is there a solution?
I have two crates in a workspace: backend server and wasm frontend (and a shared crate for the API types).
I want to use the following profile only for the
frontendcrate:I only want to optimize my frontend for size, but the backend server for speed.
But:
Why can't this be allowed?
I'd really like to avoid having to split the frontend off into a separate workspace, is there a solution?