Ralith / hypermine

A hyperbolic voxel game
Apache License 2.0
160 stars 20 forks source link

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

Closed patowen closed 8 months ago

patowen commented 8 months ago

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 https://github.com/gyscos/zstd-rs/issues/270 and https://github.com/gyscos/zstd-rs/issues/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"