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

agb_image_converter 0.17.1 compilation error: use of unstable lib feature 'build_hasher_simple_hash_one' #510

Closed
orende opened this issue Oct 28, 2023 · 2 comments

Comments

@orende
Copy link

orende commented Oct 28, 2023

Steps to reproduce:

  1. Clone repo master at 95721e2.
  2. cd to template/
  3. Run cargo build

Result:

user@computer:~/workspace/rust/agb-upgrade/template$ cargo build
    Updating crates.io index
   Compiling autocfg v1.1.0
   Compiling version_check v0.9.4
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling compiler_builtins v0.1.91
   Compiling core v0.0.0 (/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling cfg-if v1.0.0
   Compiling crc32fast v1.3.2
   Compiling num-traits v0.2.17
   Compiling quote v1.0.33
   Compiling num-integer v0.1.45
   Compiling syn v2.0.38
   Compiling adler32 v1.2.0
   Compiling num-rational v0.3.2
   Compiling num-iter v0.1.43
   Compiling ahash v0.8.6
   Compiling proc-macro-error-attr v1.0.4
   Compiling byteorder v1.5.0
   Compiling deflate v0.8.6
   Compiling miniz_oxide v0.3.7
   Compiling proc-macro-error v1.0.4
   Compiling zerocopy v0.7.18
   Compiling bitflags v1.3.2
   Compiling adler v1.0.2
   Compiling once_cell v1.18.0
   Compiling miniz_oxide v0.7.1
   Compiling png v0.16.8
   Compiling bytemuck v1.14.0
   Compiling color_quant v1.1.0
   Compiling either v1.9.0
   Compiling itertools v0.11.0
   Compiling image v0.23.14
   Compiling flate2 v1.0.28
   Compiling rustc-std-workspace-core v1.99.0 (/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling hashbrown v0.13.2
   Compiling log v0.4.20
   Compiling alloc v0.0.0 (/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling ttf-parser v0.15.2
   Compiling nohash v0.2.0
   Compiling asefile v0.3.6
   Compiling fontdue v0.7.3
   Compiling rustc-hash v1.1.0
   Compiling arbitrary-int v1.2.6
   Compiling agb_macros v0.17.1
   Compiling bilge-impl v0.2.0
   Compiling agb v0.17.1
   Compiling hound v3.5.1
   Compiling agb_fixnum v0.17.1
   Compiling agb_sound_converter v0.17.1
   Compiling agb_image_converter v0.17.1
error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/agb_image_converter-0.17.1/src/deduplicator.rs:113:36
    |
113 |             let tile_hash = hasher.hash_one(&tile);
    |                                    ^^^^^^^^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information
    = help: add `#![feature(build_hasher_simple_hash_one)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/agb_image_converter-0.17.1/src/deduplicator.rs:114:40
    |
114 |             let vflipped_hash = hasher.hash_one(&vflipped);
    |                                        ^^^^^^^^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information
    = help: add `#![feature(build_hasher_simple_hash_one)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/agb_image_converter-0.17.1/src/deduplicator.rs:115:40
    |
115 |             let hflipped_hash = hasher.hash_one(&hflipped);
    |                                        ^^^^^^^^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information
    = help: add `#![feature(build_hasher_simple_hash_one)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'build_hasher_simple_hash_one'
   --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/agb_image_converter-0.17.1/src/deduplicator.rs:116:41
    |
116 |             let vhflipped_hash = hasher.hash_one(&vhflipped);
    |                                         ^^^^^^^^
    |
    = note: see issue #86161 <https://github.com/rust-lang/rust/issues/86161> for more information
    = help: add `#![feature(build_hasher_simple_hash_one)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `agb_image_converter` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...

Operating System: Ubuntu 12
Kernel Version: 6.5.0-10-generic (64-bit)
Processors: 4 × Intel® Core™ i7-5500U CPU @ 2.40GHz
Memory: 7,5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500

Last version I used of the library was 0.13.0, which compiled fine.

@gwilymk
Copy link
Contributor

gwilymk commented Oct 28, 2023

Hi, thanks for the report.

hash_one was stabilised in rust version 1.71 so you should be able to continue using agb if you update your compiler with rustup update nightly :)

@orende
Copy link
Author

orende commented Oct 28, 2023

That worked, thanks!

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

No branches or pull requests

2 participants