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

take custom system path in actix_rt::main macro #363

Merged
merged 7 commits into from
Jun 8, 2021
Merged

take custom system path in actix_rt::main macro #363

merged 7 commits into from
Jun 8, 2021

Conversation

ibraheemdev
Copy link
Member

@ibraheemdev ibraheemdev commented Jun 8, 2021

PR Type

Feature

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

Take an optional path to System in the actix-rt main macro, which will allow actix-web/actix to reuse the macro by passing the path to their exports.

@robjtede
Copy link
Member

robjtede commented Jun 8, 2021

looks good. if possible and for my peace of mind, can you also open/adjust the PR for -web to use this method before it's merged

@robjtede
Copy link
Member

robjtede commented Jun 8, 2021

great, i've verified that it works using your PR'd #[actix_web::main]

given the new failure modes can you add a trybuild UI test for those too
+ a changelog entry please so i remember to release this

actix-macros/CHANGES.md Outdated Show resolved Hide resolved
Copy link
Member

@robjtede robjtede left a comment

Choose a reason for hiding this comment

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

❤️

@robjtede robjtede merged commit 3824493 into actix:master Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants