-
Notifications
You must be signed in to change notification settings - Fork 82
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
Update Rust version and dependencies #649
base: main
Are you sure you want to change the base?
Conversation
This commit updates MSRV to 1.71 and bumps dependencies in the lock file. Signed-off-by: Mark Kirichenko <[email protected]>
This commit bumps `idna` to 1.0.3 in order to mitigate https://rustsec.org/advisories/RUSTSEC-2024-0421 Signed-off-by: Mark Kirichenko <[email protected]>
This commit replaces `yaml-rust` with `yaml-rust2` in order to mitigate https://rustsec.org/advisories/RUSTSEC-2024-0320 Signed-off-by: Mark Kirichenko <[email protected]>
This commit replaces `serde_cbor` with `ciborium` because the original crate has been deprecated: https://rustsec.org/advisories/RUSTSEC-2021-0127 Signed-off-by: Mark Kirichenko <[email protected]>
This commit updates Clap from 3.2 to 4.4. This change is needed because old Clap has a dependency on crate `atty` which is unmaintained: https://rustsec.org/advisories/RUSTSEC-2024-0375 This commit updates the dependency version and the code. Signed-off-by: Mark Kirichenko <[email protected]>
This commit updates Cargo.lock after applying previous commits which bump dependencies. Signed-off-by: Mark Kirichenko <[email protected]>
This commit bumps version for `cargo-about` tool from 0.5.0 to 0.6.6. This fixes the problem with parsing Unicode licenses. In order to maintain MSRV 1.71.1 this commit adds stable toolchain which is used to run up-to-date `cargo-about` tool. Signed-off-by: Mark Kirichenko <[email protected]>
This commit adds Unicode-3.0 to the list of allowed licenses, and updates the license attribution document. Signed-off-by: Mark Kirichenko <[email protected]>
f17e792
to
a5f7c4f
Compare
args.get_many::<String>("cpu-ids") | ||
.map(|values| { | ||
values | ||
.map(|id| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks much rustier now 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
however, ideally that refactoring should be in a separate commit as it's not much related to Clap upgrade
rustup target add --toolchain ${RUST_VERSION} ${ARCH}-unknown-linux-musl && \ | ||
# Install stable toolchain (needed to run fresh cargo-about) | ||
rustup toolchain install stable-${ARCH}-unknown-linux-gnu && \ | ||
cargo +stable install cargo-about --version 0.6.6 --locked && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indentation
Issue #, if available:
Description of changes:
The purpose of this PR is to unblock developers by satisfying the requirements coming from automated security and license checks. Without these changes, automated scanners will block new pull requests.
make update-third-party-licenses-rust-crates-html
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.