-
Notifications
You must be signed in to change notification settings - Fork 110
chore: update dependencies #318
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
base: master
Are you sure you want to change the base?
Changes from all commits
3f43767
8ede816
f05262e
720cffb
ef66a14
373a99c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directories: | ||
- / | ||
- fuzz | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -8,7 +8,7 @@ on: | |||||||
env: | ||||||||
RUST_BACKTRACE: 1 | ||||||||
toolchain_style: stable | ||||||||
toolchain_msrv: 1.70.0 | ||||||||
toolchain_msrv: 1.74.1 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. only h3_quinn msrv increase should be necessary for quinn There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check for yourself? |
||||||||
toolchain_h3_quinn_msrv: 1.74.1 | ||||||||
toolchain_doc: nightly-2025-04-02 | ||||||||
toolchain_lint: stable | ||||||||
|
@@ -35,76 +35,49 @@ jobs: | |||||||
name: Check Style | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_style }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_style }} | ||||||||
override: true | ||||||||
components: rustfmt | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: cargo fmt --all -- --check | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: fmt | ||||||||
args: --all -- --check | ||||||||
- run: cargo fmt --all -- --check | ||||||||
|
||||||||
lint: | ||||||||
name: Lint | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_lint }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_lint }} | ||||||||
override: true | ||||||||
components: clippy | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: cargo clippy | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: clippy | ||||||||
- run: cargo clippy | ||||||||
|
||||||||
msrv: | ||||||||
name: Check MSRV | ||||||||
needs: [style] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_msrv }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_msrv }} | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove rust-cache? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't, it's built-in 😉
|
||||||||
- name: cargo check -p h3 | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: check | ||||||||
args: -p h3 | ||||||||
- run: cargo check -p h3 | ||||||||
|
||||||||
msrv_h3_quinn: | ||||||||
name: Check MSRV of `h3-quinn` | ||||||||
needs: [style] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_h3_quinn_msrv }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_h3_quinn_msrv }} | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: cargo check -p h3-quinn | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: check | ||||||||
args: -p h3-quinn | ||||||||
- run: cargo check -p h3-quinn | ||||||||
|
||||||||
test: | ||||||||
name: Test ${{ matrix.toolchain }} ${{ matrix.os }} ${{ matrix.target }} | ||||||||
|
@@ -123,7 +96,7 @@ jobs: | |||||||
target: i686-unknown-linux-gnu | ||||||||
runs-on: ${{ matrix.os }} | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
# Add this step for 32-bit build support | ||||||||
- name: Install 32-bit development libraries | ||||||||
if: matrix.target == 'i686-unknown-linux-gnu' | ||||||||
|
@@ -132,18 +105,13 @@ jobs: | |||||||
sudo apt-get update | ||||||||
sudo apt-get install -y gcc-multilib libc6-dev-i386 | ||||||||
- name: Install Rust ${{ matrix.toolchain }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ matrix.toolchain }} | ||||||||
target: ${{ matrix.target }} | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: cargo test | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: test | ||||||||
args: --features ${{ matrix.features }} --target ${{ matrix.target }} | ||||||||
- run: cargo test --features ${{ matrix.features }} --target ${{ matrix.target }} | ||||||||
env: #[cfg(feature = "datagram")] unexpected `cfg` condition value: `datagram` | ||||||||
RUSTFLAGS: "-A unexpected_cfgs" | ||||||||
- name: h3Spec | ||||||||
run: ./ci/h3spec.sh | ||||||||
if: matrix.toolchain == 'stable' | ||||||||
|
@@ -153,49 +121,35 @@ jobs: | |||||||
needs: [test] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_doc }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_doc }} | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: cargo rustdoc -p h3 -- -D intra-doc-link-resolution-failure | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: rustdoc | ||||||||
args: -p h3 -- -D intra-doc-link-resolution-failure | ||||||||
- run: cargo rustdoc -p h3 -- -D intra-doc-link-resolution-failure | ||||||||
|
||||||||
fuzz: | ||||||||
name: Fuzz test | ||||||||
needs: [test] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust ${{ env.toolchain_fuzz }} | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: ${{ env.toolchain_fuzz }} | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: Install cargo-fuzz | ||||||||
uses: camshaft/install@v1 | ||||||||
with: | ||||||||
crate: cargo-fuzz | ||||||||
- name: cargo fuzz run fuzz_varint -- -runs=1 | ||||||||
uses: actions-rs/cargo@v1 | ||||||||
with: | ||||||||
command: fuzz | ||||||||
args: run fuzz_varint -- -runs=1 | ||||||||
- run: cargo fuzz run fuzz_varint -- -runs=1 | ||||||||
|
||||||||
compliance: | ||||||||
name: Compliance report | ||||||||
needs: [test] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
with: | ||||||||
persist-credentials: false | ||||||||
fetch-depth: 0 | ||||||||
|
@@ -209,13 +163,10 @@ jobs: | |||||||
needs: [test] | ||||||||
runs-on: ubuntu-latest | ||||||||
steps: | ||||||||
- uses: actions/checkout@v3 | ||||||||
- uses: actions/checkout@v5 | ||||||||
- name: Install Rust stable | ||||||||
uses: actions-rs/toolchain@v1 | ||||||||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||||||||
with: | ||||||||
profile: minimal | ||||||||
toolchain: stable | ||||||||
override: true | ||||||||
- uses: Swatinem/rust-cache@v2 | ||||||||
- name: Run server and client examples test | ||||||||
run: ./ci/example_test.sh |
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.
I am not sure if there is a benefit for us with dependabot because as libary users can use newer versions without the need to update them in the libary.
@seanmonstar what do you think?
Maybe we can keep
fuzz
and addexamples
? Or can we just activate for dev-dependencies?If deciding to use it for all then the subcrates (h3_quinn,h3_datagram and h3_webtransport) should be added. Or is it enough to add root directory?
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.
I haven't found dependabot to be sufficiently useful when developing libraries, mostly just annoying. 🤷
Uh oh!
There was an error while loading. Please reload this page.
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.
I think it's better than having libraries with outdated dependencies 😄
I added all crates,
/
adds all members, others like fuzz are not included in the workspace.You can limit the amount of PRs, group and ignore as much as you like if you think that it makes it easier for you merging updates.
https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#ignore--
I wonder how much of a problem is expected if it never has been used here...
But no, your users can only update transitive dependencies within compatible ranges as you can see in my changes.
For example,
rcgen = "0.14"
allows them to update to 0.14.5 if my work would be merged.Until then 0.13.3 is the allowed maximum:
https://crates.io/crates/rcgen/versions
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.
Libraries rarely have outdated dependencies, since lockfiles are ignored and semver ranges allow users to upgrade. The only time it's true is when a dependency releases a semver-breaking change, which we typically need to handle manually anyways.
I still think it's better to drop dependabot here.