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

Build is currently broken (unresolved import zstd_sys::ZSTD_cParameter::ZSTD_c_experimentalParam6) #370

Closed
patowen opened this issue Mar 29, 2024 · 0 comments · Fixed by #372

Comments

@patowen
Copy link
Collaborator

patowen commented Mar 29, 2024

Building Hypermine from scratch results in the following error:

error[E0432]: unresolved import `zstd_sys::ZSTD_cParameter::ZSTD_c_experimentalParam6`
   --> C:\Users\Patrick\.cargo\registry\src\index.crates.io-6f17d22bba15001f\zstd-safe-6.0.6\src\lib.rs:609:13
    |
609 |             ZSTD_c_experimentalParam6 as ZSTD_c_targetCBlockSize,
    |             -------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |             |
    |             no `ZSTD_c_experimentalParam6` in `ZSTD_cParameter`
    |             help: a similar name exists in the module: `ZSTD_c_experimentalParam1`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `zstd-safe` (lib) due to 1 previous error

See gyscos/zstd-rs#270 and gyscos/zstd-rs#268 for the likely root cause.

This comes from the dependency we import in save/Cargo.toml:

zstd = { package = "zstd-safe", version = "6.0.4", features = ["std", "experimental"] }

Current workaround

Add the following after the zstd dependency in save/cargo.toml:

zstd-sys = "=2.0.9"
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 a pull request may close this issue.

1 participant