paru
paru copied to clipboard
2.0.1 fails to build on Arch, over unstable Rust features.
Affected Version
2.0.1
Description
2.0.1 fails to build with errors related to unstable Rust features.
Output
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:2:5
|
2 | cell::OnceCell,
| ^^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:52:11
|
52 | pkgs: OnceCell<Arc<Vec<PkgbuildPkg>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:64:19
|
64 | pkgs: OnceCell::new(),
| ^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:124:21
|
124 | repo.pkgs = OnceCell::from(Arc::new(pkgs));
| ^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:64:19
|
64 | pkgs: OnceCell::new(),
| ^^^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'once_cell'
--> src/pkgbuild.rs:78:14
|
78 | .get_or_init(move || Arc::new(self.read_pkgs(config)))
| ^^^^^^^^^^^
|
= note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
error[E0658]: use of unstable library feature 'is_some_and'
--> src/lib.rs:74:52
|
74 | debug_enabled() && env::var("PARU_ALPM_DEBUG").is_ok_and(|v| v != "0")
| ^^^^^^^^^
|
= note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `paru` due to 7 previous errors
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'paru-2.0.1-1':
error: packages failed to build: paru-2.0.1-1
Your rust version is outdated. You need at least 1.70.0.
rustup update was something I should've tried first. This fixed it for me. Thank you!