Skip to content

Conversation

@max-heller
Copy link
Contributor

Currently, "common" deps and features in selects in generated lockfiles are not always common to all target platforms in the presence of conditional dependencies. This change ensures that common deps and features for a crate are common to all supported targets, not just those targets for which the crate dependency is enabled.

Unfortunately this results in a size explosion for some generated lockfiles. I believe this is mostly because the examples consider all target triples, and certain triples (in particular, wasm32-unknown-unknown for examples/crate_universe/multi_package/cargo-bazel-lock.json) break the commonality. When supported_platform_triples is specified, the impact should be less severe.

Currently, "common" deps and features in selects in generated lockfiles
are not always common to all target platforms in the presence of
conditional dependencies. This change ensures that common deps and
features for a crate are common to all supported targets, not just those
targets for which the crate dependency is enabled.
@max-heller
Copy link
Contributor Author

I could've sworn this was needed for a conditional compilation setup but things seem to be working without it so maybe the current implementation is sufficient after all. Closing unless the need arises again

@max-heller max-heller closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant