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

re-work from request macro. #2469

Merged
merged 2 commits into from Nov 29, 2021
Merged

re-work from request macro. #2469

merged 2 commits into from Nov 29, 2021

Conversation

fakeshadow
Copy link
Contributor

PR Type

Refactor

PR Checklist

  • Tests for the changes have been added / updated.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Reduce size of future generated. Depend on the type can be up to 30%.
Enable pin_project_lite in macro.

@fakeshadow fakeshadow added A-web project: actix-web B-semver-norelease change that does not require a release labels Nov 28, 2021
Comment on lines 99 to +100
pin-project = "1.0.0"
pin-project-lite = "0.2.7"
Copy link
Member

Choose a reason for hiding this comment

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

pin-project and pin-project-lite?

Copy link
Member

Choose a reason for hiding this comment

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

we're migrating as we go, both crates are in the dep graph anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only blocker of removing pin-projectbesides this macro was the pin drop attr used in logger middleware.
pin-project-lite 0.2.7 added this feature so at this point it's possible to remove pin-project from actix-web

@robjtede robjtede merged commit cf54388 into master Nov 29, 2021
@robjtede robjtede deleted the extractor branch November 29, 2021 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-norelease change that does not require a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants