GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: update dependencies in Rust templates by Ankitsinghsisodya · Pull Request #3641 · knative/func

Conversation

@Ankitsinghsisodya

@Ankitsinghsisodya Ankitsinghsisodya commented Apr 25, 2026

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
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

knative-prow Bot commented Apr 25, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of Ankitsinghsisodya April 25, 2026 09:37
View session
Copilot AI reviewed Apr 25, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codecov

codecov Bot commented Apr 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@matejvasek

matejvasek commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow-robot knative-prow-robot added needs-rebase Cannot be merged due to conflicts with HEAD. and removed needs-rebase Cannot be merged due to conflicts with HEAD. labels Apr 30, 2026
@Ankitsinghsisodya

Ankitsinghsisodya commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

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

Done sir!!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow-robot knative-prow-robot added the needs-rebase Cannot be merged due to conflicts with HEAD. label May 3, 2026
Ankitsinghsisodya added 3 commits May 4, 2026 00:46
@Ankitsinghsisodya
chore: update dependencies in Rust templates
62b133e
- 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.
@Ankitsinghsisodya
fix: pin actix-web to 4.12.1 to satisfy CI Rust 1.86 MSRV
afb30b5
@Ankitsinghsisodya
chore: update dependency versions in Cargo.lock for cloudevents and h…
909c684
…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.
@knative-prow-robot knative-prow-robot removed the needs-rebase Cannot be merged due to conflicts with HEAD. label May 3, 2026
@Ankitsinghsisodya
fix: update embedded templates in zz_filesystem_generated.go
e8db29c
Refreshed binary data in the TemplatesZip variable to address discrepancies.
Enhanced consistency in the embedded templates for improved functionality
@Ankitsinghsisodya

Ankitsinghsisodya commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

cc : @matejvasek

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gauron99

gauron99 commented May 7, 2026

Copy link
Copy Markdown
Contributor

/lgtm
/approve

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

knative-prow Bot commented May 7, 2026

Copy link
Copy Markdown

[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:
  • OWNERS [gauron99]

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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
41 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@dsimansk dsimansk Awaiting requested review from dsimansk
@jrangelramos jrangelramos Awaiting requested review from jrangelramos

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gauron99 gauron99

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@Ankitsinghsisodya @matejvasek @gauron99 @knative-prow-robot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.