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

feat(deps): add separate wit-wasm and wit-std features #531

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

LUK3ARK
Copy link
Contributor

@LUK3ARK LUK3ARK commented Jan 2, 2025

Up until now wadm-types has only been depended on from a std context, however it would be useful to use it in wasm targets

Change syncs latest wadm-types and allows them to be used in both wasm and std contexts

I couldn't really think of a cleaner way to do the feature gates, open to suggestions

@LUK3ARK LUK3ARK requested a review from a team as a code owner January 2, 2025 03:28
@LUK3ARK
Copy link
Contributor Author

LUK3ARK commented Jan 2, 2025

as a note - with this current setup it is currently only possible to depend in a wasm context when the wadm-types dependency has default-features = false

otherwise, tokio causes problems

@LUK3ARK
Copy link
Contributor Author

LUK3ARK commented Jan 2, 2025

default-features flag no longer needed for wasm-target compilation

Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

I'm good with this as long as it works with and without the feature

@brooksmtownsend
Copy link
Member

tested manually, all LGTM

@brooksmtownsend brooksmtownsend merged commit 11aa88b into wasmCloud:main Jan 2, 2025
5 checks passed
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