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

Rewrite the main function #5

Merged
merged 9 commits into from
Mar 8, 2022
Merged

Rewrite the main function #5

merged 9 commits into from
Mar 8, 2022

Conversation

TheRustifyer
Copy link
Member

Created the #[canyon] macro, that rewrites the code inside the main function.

Avoids the user to specify the async modifier, and to invoke the proc-macro #[tokio::main], now it's wired by `#[canyon] automatically.

It's been setted up the macro's crate to allow the creation of a new macro that will registers the structures managed by Canyon on a global namespace, allowing Canyon to know what data it has to care about in it's complete lifecycle

@TheRustifyer TheRustifyer added the enhancement New feature or request label Mar 1, 2022
@TheRustifyer TheRustifyer requested a review from gbm25 March 1, 2022 13:38
@TheRustifyer TheRustifyer self-assigned this Mar 1, 2022
@TheRustifyer TheRustifyer merged commit 80859e6 into main Mar 8, 2022
@gbm25 gbm25 deleted the managed_state branch March 17, 2022 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants