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

procfs 0.17.0 requires Rust 1.70.0 #319

Open
tyilo opened this issue Oct 25, 2024 · 1 comment
Open

procfs 0.17.0 requires Rust 1.70.0 #319

tyilo opened this issue Oct 25, 2024 · 1 comment

Comments

@tyilo
Copy link

tyilo commented Oct 25, 2024

According to Cargo.toml procfs supports Rust 1.48. However it fails to build on versions below 1.70.0.

We are currently using procfs with Rust 1.67.1, where we get the following error when compiling:

    Checking procfs-core v0.17.0
error[E0658]: use of unstable library feature 'is_some_and'
   --> /home/tyilo/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-core-0.17.0/src/crypto.rs:369:35
    |
369 |         .map(|line| line.as_ref().is_ok_and(|line| line.contains("fips")))
    |                                   ^^^^^^^^^
    |
    = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information

error[E0658]: use of unstable library feature 'is_some_and'
   --> /home/tyilo/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-core-0.17.0/src/crypto.rs:400:35
    |
400 |         .map(|line| line.as_ref().is_ok_and(|line| line.contains("geniv")))
    |                                   ^^^^^^^^^
    |
    = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information

Either the MSRV should be bumped or procfs-core should support Rust 1.48.

@eminence
Copy link
Owner

Sorry about that. Cargo.toml got out-of-date somewhere along the way. It should be updated to match the actual MSRV

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