Skip to content

add function single generic type support#3779

Open
uraneko wants to merge 7 commits intoactix:mainfrom
uraneko:2866
Open

add function single generic type support#3779
uraneko wants to merge 7 commits intoactix:mainfrom
uraneko:2866

Conversation

@uraneko
Copy link

@uraneko uraneko commented Sep 26, 2025

PR Type

Other(improvement)

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Closes #2866

@github-actions github-actions bot added A-web-codegen project: actix-web-codegen A-web project: actix-web B-semver-patch labels Feb 3, 2026
@JohnTitor JohnTitor added B-semver-major breaking change requiring a major version bump and removed B-semver-patch labels Feb 5, 2026
@JohnTitor
Copy link
Member

Thanks for the PR! I've tweaked to support more generics and have better test suite.
But the current implementation has technically breaking change around Default impl although I think the current is one of good form to land.
If you have a good idea here, I'm happy to hear and see it :)

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

Labels

A-web project: actix-web A-web-codegen project: actix-web-codegen B-semver-major breaking change requiring a major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot infer type for type parameter when defining handler with #[get("/")] and generics

2 participants