Skip to content

chore: update dependencies in Rust templates#3641

Merged
knative-prow[bot] merged 4 commits intoknative:mainfrom
Ankitsinghsisodya:bump-rust-template-deps
May 7, 2026
Merged

chore: update dependencies in Rust templates#3641
knative-prow[bot] merged 4 commits intoknative:mainfrom
Ankitsinghsisodya:bump-rust-template-deps

Conversation

@Ankitsinghsisodya
Copy link
Copy Markdown
Contributor

What

Bumps dependency versions across both Rust function templates (templates/rust/http and templates/rust/cloudevents). The Rust templates had not been updated since 2023, leaving scaffolded projects with packages that were 2+ years out of date.

This is the Rust equivalent of #3582 (Node/TypeScript templates) and #3604 (Python templates).

Changes

Template Package Old New
http, cloudevents actix-web 4.3.1 4.13.0
http, cloudevents actix-rt 2.8.0 2.11.0
http, cloudevents env_logger 0.10.0 0.11.10
http, cloudevents log 0.4.18 0.4.29
cloudevents cloudevents-sdk 0.7.0 0.9.0
cloudevents serde_json 1.0.96 1.0.149

Cargo.lock files regenerated accordingly.

Notes

  • No handler code changes required — all updated packages are API-compatible with the existing template code
  • env_logger 0.11 kept the Builder::from_env API intact
  • cloudevents-sdk 0.9 actix feature is compatible with the Event/EventBuilderV10 usage in handler.rs
  • Both templates compile cleanly with the new versions

Copilot AI review requested due to automatic review settings April 25, 2026 09:37
@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos April 25, 2026 09:37
@knative-prow knative-prow Bot added size/XXL 🤖 PR changes 1000+ lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels Apr 25, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented Apr 25, 2026

Hi @Ankitsinghsisodya. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Rust function templates to use current versions of core Actix and logging dependencies (and the CloudEvents SDK for the events template), ensuring newly scaffolded Rust functions start from an up-to-date dependency set.

Changes:

  • Bumped actix-web, actix-rt, env_logger, and log in both Rust templates.
  • Bumped cloudevents-sdk and serde_json in the CloudEvents template.
  • Regenerated both templates’ Cargo.lock files to reflect the resolved dependency graph.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
templates/rust/http/Cargo.toml Updates core HTTP template dependencies to newer Actix + logging versions.
templates/rust/http/Cargo.lock Regenerated lockfile to match updated HTTP template dependencies.
templates/rust/cloudevents/Cargo.toml Updates CloudEvents template dependencies (Actix/logging + cloudevents-sdk + serde_json).
templates/rust/cloudevents/Cargo.lock Regenerated lockfile to match updated CloudEvents template dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ankitsinghsisodya Ankitsinghsisodya force-pushed the bump-rust-template-deps branch 3 times, most recently from 6628b21 to b48cc19 Compare April 25, 2026 11:03
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.52%. Comparing base (5e9d6f8) to head (e8db29c).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3641      +/-   ##
==========================================
+ Coverage   53.33%   56.52%   +3.19%     
==========================================
  Files         181      181              
  Lines       20671    20671              
==========================================
+ Hits        11025    11685     +660     
+ Misses       8573     7775     -798     
- Partials     1073     1211     +138     
Flag Coverage Δ
e2e 36.30% <ø> (+<0.01%) ⬆️
e2e go 32.99% <ø> (?)
e2e node 28.75% <ø> (?)
e2e python 33.36% <ø> (?)
e2e quarkus 28.89% <ø> (?)
e2e rust 28.28% <ø> (?)
e2e springboot 26.73% <ø> (?)
e2e typescript 28.86% <ø> (?)
e2e-config-ci 18.07% <ø> (ø)
integration 17.47% <ø> (?)
unit macos-14 43.60% <ø> (ø)
unit macos-latest 43.60% <ø> (ø)
unit ubuntu-24.04-arm 43.80% <ø> (ø)
unit ubuntu-latest 44.47% <ø> (ø)
unit windows-latest 43.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ankitsinghsisodya Ankitsinghsisodya force-pushed the bump-rust-template-deps branch from 243a4a2 to 31a1430 Compare April 25, 2026 11:47
@matejvasek
Copy link
Copy Markdown
Contributor

@Ankitsinghsisodya you need to regenerate generate/zz_filesystem_generated.go.

@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label Apr 30, 2026
@Ankitsinghsisodya Ankitsinghsisodya force-pushed the bump-rust-template-deps branch from 2b43f1a to adbb422 Compare April 30, 2026 12:21
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label Apr 30, 2026
@Ankitsinghsisodya
Copy link
Copy Markdown
Contributor Author

@Ankitsinghsisodya you need to regenerate generate/zz_filesystem_generated.go.

Done sir!!

@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label May 3, 2026
- Bump actix-rt to version 2.11.0 and actix-web to version 4.13.0 in both cloudevents and http templates.
- Update cloudevents-sdk to version 0.9.0 and env_logger to version 0.11.10.
- Adjust various package versions in Cargo.lock files for cloudevents and http templates, including actix-http, actix-server, and others.
- Remove outdated dependencies and add new ones as necessary for compatibility and performance improvements.
…ttp templates

- Downgrade versions for several packages including deranged (0.5.8 to 0.3.11), num-conv (0.2.1 to 0.1.0), time (0.3.47 to 0.3.36), time-core (0.1.8 to 0.1.2), and time-macros (0.2.27 to 0.2.18).
- Update checksums accordingly to reflect the new versions.
@Ankitsinghsisodya Ankitsinghsisodya force-pushed the bump-rust-template-deps branch from 7a00e6e to 5cb46d8 Compare May 3, 2026 19:28
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label May 3, 2026
Refreshed binary data in the TemplatesZip variable to address discrepancies.
Enhanced consistency in the embedded templates for improved functionality
@Ankitsinghsisodya Ankitsinghsisodya force-pushed the bump-rust-template-deps branch from 5cb46d8 to e8db29c Compare May 3, 2026 19:29
@Ankitsinghsisodya
Copy link
Copy Markdown
Contributor Author

cc : @matejvasek

@gauron99
Copy link
Copy Markdown
Contributor

gauron99 commented May 7, 2026

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label May 7, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 7, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ankitsinghsisodya, gauron99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label May 7, 2026
@knative-prow knative-prow Bot merged commit e53ea2f into knative:main May 7, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. lgtm 🤖 PR is ready to be merged. needs-ok-to-test 🤖 Needs an org member to approve testing size/XXL 🤖 PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants