Skip to content

zstd-sys error #2042

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

Closed
MrBigtool opened this issue Mar 20, 2022 · 4 comments
Closed

zstd-sys error #2042

MrBigtool opened this issue Mar 20, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@MrBigtool
Copy link

Hi, I am new in rust but I want to do an experiment with this library in a web assembly project.

Just I am adding the lib:

`[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2.67"
datafusion = "7.0.0"
tokio = "1.17.0"
getrandom = { version = "0.2.5", features = ["js"] }`

And it is causing the error:

error: failed to run custom build command for 'zstd-sys v1.6.3+zstd.1.5.2'

I dont understand if I need to install ZSTD additionally in my mac to use this library.

@MrBigtool MrBigtool added the bug Something isn't working label Mar 20, 2022
@Igosuki
Copy link
Contributor

Igosuki commented Mar 22, 2022

You need zstd bindings for the target runtime, https://github.com/gyscos/zstd-rs/wiki/Compile-for-WASM

@alamb
Copy link
Contributor

alamb commented Sep 25, 2023

I dont understand if I need to install ZSTD additionally in my mac to use this library.

This may be related to dependencies brought in by parquet

@alamb
Copy link
Contributor

alamb commented Mar 11, 2024

I think this is complete now (the parquet support is optional and we are tracking remaining items in #7651)

@alamb alamb closed this as completed Mar 11, 2024
@kylebarron
Copy link
Contributor

FWIW zstd-rs does compile to wasm. You need to use the wasm and thin features: https://github.com/kylebarron/parquet-wasm/blob/24402e3719611b25662babb30f8f47181c0c2345/Cargo.toml#L89-L92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants