Skip to content
New issue

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

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

Already on GitHub? # to your account

Wasm features in Cargo.toml still used ? #284

Open
touilleMan opened this issue Jun 4, 2024 · 3 comments
Open

Wasm features in Cargo.toml still used ? #284

touilleMan opened this issue Jun 4, 2024 · 3 comments

Comments

@touilleMan
Copy link

Hi,

I've seen there is a wasm feature defined for crate zstd

wasm = []

However there is no code using it, shouldn't it be removed ?
My guess is it's here in order not to break the compatibility, if that's the case it may be good to add a small comment explaining this feature doesn't do anything on purpose.

In any way I'd be happy to provide a PR about this ;-)

@crajcan
Copy link

crajcan commented Jun 7, 2024

I'm also curios as I'm trying to use this crate in a wasm build but I'm getting a runtime error.

@gyscos
Copy link
Owner

gyscos commented Jun 17, 2024

Hi, and thanks for the report!

Indeed, it seems to date back to 3 years ago when building for wasm needed a special feature to disable libc. Now it's indeed just a useless placeholder for backward compatibility. Though I guess that after 3 years it might be fine to remove? Or at the very least add a comment, you're absolutely right.

@touilleMan
Copy link
Author

@gyscos do you want a PR removing the feature then ? 😃

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants