Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce dependencies of wasm-metadata #2090

Conversation

alexcrichton
Copy link
Member

This crate is depended on by wit-component which shows up in a lot of places, but most of the dependencies of wasm-metadata are not needed for wit-component. This commit gates most of the OCI-related information behind a compile-time oci feature which is enabled by default. The workspace dependency now disables default features and only the CLI itself enables the default features of wasm-metadata.

This crate is depended on by `wit-component` which shows up in a lot of
places, but most of the dependencies of `wasm-metadata` are not needed
for `wit-component`. This commit gates most of the OCI-related
information behind a compile-time `oci` feature which is enabled by
default. The workspace dependency now disables default features and only
the CLI itself enables the default features of `wasm-metadata`.
Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me; ship it!

@yoshuawuyts yoshuawuyts added this pull request to the merge queue Mar 10, 2025
Merged via the queue into bytecodealliance:main with commit 1216a45 Mar 10, 2025
31 checks passed
@alexcrichton alexcrichton deleted the gate-wasm-metadata-dependencies branch March 11, 2025 14:34
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.

2 participants