rust-lang / wg-cargo-std-aware

Repo for working on "std aware cargo"
133 stars 8 forks source link

-Z build-std with unified workspace #64

Open Ericson2314 opened 3 years ago

Ericson2314 commented 3 years ago

If I'm not misreading the Cargo code:

I don't think this is a good approach, long term:

Conversely, we might inject the crates and (explicit and implicit) stdlib deps to create a unified workspace. We would also combine the lock files to create a lockfile for the combined workspace with the materialized. Now, this will be a bunch of work up front, but I think it comes with a bunch of benefits:

I also wonder if it might help with https://github.com/rust-lang/wg-cargo-std-aware/issues/23#issuecomment-762466564. Combining the workspaces and lockfiles is also a "big global change", so maybe it's OK to use source for mirroring just in that case?

lygstate commented 3 years ago

What's the plan to stablize -Z build-std?

Ericson2314 commented 3 years ago

Hopefully not until these changes are done...