Open lrazovic opened 3 years ago
- Update
libc
to latest version.
This just disallows older libc
versions for no reason. The latest libc version is already allowed (libraries don't generally specify max versions in rust, the specific version is decided by applications in Cargo.lock
)
Thank you so much for the explanation, now I learned something new. I removed the dependency updates from the PR.
Sorry for missing this 🙈
The dependency change is a good catch, we should stay conservative. Also, any changes that increase the MSRV should probably only be done because of a huge improvement. With such a basic, fundamental crate, we don't want to make it so people couldn't upgrade (even if they are using some ancient compiler).
include
filed inCargo.toml
to reduce the crate size by 10%.libc
to latest version.hermit-abi
to latest version.Self
instead of structs name in theimpl
sMaybeUninit
instead ofmem::zeroed
. This removes anunsafe
block, but bumps MSRV to 1.36.0.Cgroup::new()
aconst
function, this bumps MSRV to 1.32.0.I understand that it's a lot of changes, and especially for those that increase the level, I'm ready to discuss its implementation and in case go back.
I tested this PR on Linux and Windows, using
cargo test --all-features --all-targets
,miri
andclippy
.