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

Fix wasm32 + #[no_std] compatibility #19

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

texodus
Copy link
Contributor

@texodus texodus commented Sep 21, 2024

When using simd-adler32 against a wasm32-unknown-* target in a #[no_std] context (e.g. with default-features = false specified for simd-adler32), an instance of std in wasm.rs causes this build to fail. This PR changes std::mem::transmute in this file to instead import from core so wasm/no_std are compatible.

…td]` and the `wasm32` target can be used concurrently.
@mcountryman mcountryman merged commit 140cde0 into mcountryman:main Sep 21, 2024
14 of 15 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