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

AUR Install Failed #325

Open
WUST-mengqinyu opened this issue Jan 28, 2025 · 1 comment
Open

AUR Install Failed #325

WUST-mengqinyu opened this issue Jan 28, 2025 · 1 comment

Comments

@WUST-mengqinyu
Copy link

Describe the bug

Install from aur failed

To Reproduce
Steps to reproduce the behavior:

  1. Run yay -Sy netease-cloud-music-gtk4
  2. Failed with:
    Compiling netease-cloud-music-api v1.5.0 (https://gitee.com/gmg137/netease-cloud-music-api.git?tag=1.5.0#2af41403)
    error[E0599]: the method fill_bytes exists for struct OsRng, but its trait bounds were not satisfied
    --> /home/xx/.cargo/git/checkouts/netease-cloud-music-api-d1b0b588743d8e2c/2af4140/src/encrypt.rs:43:15
    |
    43 | OsRng.fill_bytes(&mut data);
    | ^^^^^^^^^^
    |
    ::: /home/xx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/os.rs:47:1
    |
    47 | pub struct OsRng;
    | ---------------- doesn't satisfy OsRng: DerefMut, OsRng: Deref or OsRng: RngCore
    |
    = note: the following trait bounds were not satisfied:
    OsRng: DerefMut
    which is required by OsRng: RngCore
    OsRng: Deref
    which is required by OsRng: RngCore

Expected behavior
Expected install successful

Screenshots

Desktop (please complete the following information):

  • Manjaro Linux 6.6.65
  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)

Additional context

@WUST-mengqinyu
Copy link
Author

maybe https://gitee.com/gmg137/netease-cloud-music-api this Cargo.toml should lock rand to 0.8 version for 0.9 breakchange

Image

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

1 participant