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

Update dependencies, generate update_metadata.rs based on protobuf 3.7 #58

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

dongsupark
Copy link
Member

Update dependencies running cargo update. Main goal here is to update futures-util to 0.3.31, due to security warning when running cargo audit.

Now that protobuf rust was updated to 3.7, generate update_metadata.rs again based on the new version, so that it includes correct _PROTOBUF_VERSION_CHECK, ::protobuf::VERSION_3_7_1.

So far README included wrong instructions for generating protobuf, using a prebuilt binary from protoc-bin-vendored crate. As the crate was stuck with older protobuf version 3.2, its output always had ::protobuf::VERSION_3_2_0. Update the instruction to include how to install a proper crate, protobuf-codegen, which allows us to generate protobuf with correct version ::protobuf::VERSION_3_7_1.

Fix clippy warning about needless_timeout.

Update dependencies running `cargo update`.

Main goal here is to update futures-util to 0.3.31, due to security warning
when running cargo-audit.

```
Crate:     futures-util
Version:   0.3.28
Warning:   yanked
Dependency tree:
futures-util 0.3.28
├── reqwest 0.11.26
│   └── ue-rs 0.1.0
├── hyper 0.14.28
│   ├── reqwest 0.11.26
│   └── hyper-tls 0.5.0
│       └── reqwest 0.11.26
└── h2 0.3.26
    ├── reqwest 0.11.26
    └── hyper 0.14.28

error: 1 vulnerability found!
warning: 1 allowed warning found
```
Now that protobuf rust was updated to 3.7, generate update_metadata.rs
again based on the new version, so that it includes correct
_PROTOBUF_VERSION_CHECK, ::protobuf::VERSION_3_7_1.
So far README included wrong instructions for generating protobuf,
using a prebuilt binary from protoc-bin-vendored crate. As the crate
was stuck with older protobuf version 3.2, its output always had
::protobuf::VERSION_3_2_0.

Update the instruction to include how to install a proper crate,
protobuf-codegen, which allows us to generate protobuf with correct
version ::protobuf::VERSION_3_7_1.
Fix warning when running cargo-clippy:

```
warning: the following explicit lifetimes could be elided: 'a
  --> src/bin/download_sysext.rs:47:6
   |
47 | impl<'a> Package<'a> {
   |      ^^          ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
47 - impl<'a> Package<'a> {
47 + impl Package<'_> {
   |
```
dongsupark added a commit to dongsupark/scripts that referenced this pull request Nov 29, 2024
dongsupark added a commit to dongsupark/scripts that referenced this pull request Nov 29, 2024
dongsupark added a commit to flatcar/scripts that referenced this pull request Dec 2, 2024
Update ue-rs mainly to update dependency crates, as well as
to address security warning around futures-util crate.

Pulls in flatcar/ue-rs#58
@dongsupark dongsupark requested a review from a team December 3, 2024 09:15
Copy link

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dongsupark dongsupark merged commit 78381b1 into trunk Dec 3, 2024
1 check passed
@dongsupark dongsupark deleted the dongsu/deps-protobuf branch December 3, 2024 14:36
dongsupark added a commit to flatcar/scripts that referenced this pull request Dec 3, 2024
Update ue-rs mainly to update dependency crates, as well as
to address security warning around futures-util crate.

Pulls in flatcar/ue-rs#58
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

Successfully merging this pull request may close these issues.

2 participants