Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Deps: minimize Tokio features#25

Merged
ekzhang merged 5 commits intoekzhang:mainfromBastiDood:deps/minimize-tokio-features
Apr 14, 2022
Merged

Deps: minimize Tokio features#25

ekzhang merged 5 commits intoekzhang:mainfromBastiDood:deps/minimize-tokio-features
Apr 14, 2022

Conversation

BastiDood
Copy link
Contributor

Hello there! I noticed that the dependency on Tokio uses thefull feature. This PR aims to resolve this by minimizing the enabled features.

While I was inmain.rs, I also removed the use of thetokio::main macro. Now, CLI parsing occurs earlier than starting up the Tokio runtime. If parsing fails, then the program terminates early (i.e. no runtime initialization required). The observable behavior should still be the same.

If there are any issues, feel free to point them out. I'd gladly resolve them. Thanks! 🎉

orhun and jihchi reacted with heart emoji
Copy link
Owner

@ekzhangekzhang left a comment

Choose a reason for hiding this comment

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

Thanks for limiting the features. It doesn't seem like there were many packages that were pruned as a result, but it's always good to have.

Clap does special things behind the scenes before it exits.
@ekzhang
Copy link
Owner

Looks great, thank you!

@BastiDood
Copy link
ContributorAuthor

Looks great, thank you!

Thank you so much for the feedback. I definitely learned something new today about thetokio::main macro. 🥳

@ekzhangekzhang merged commitb045d80 intoekzhang:mainApr 14, 2022
@BastiDoodBastiDood deleted the deps/minimize-tokio-features branchApril 15, 2022 15:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ekzhangekzhangekzhang left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@BastiDood@ekzhang

[8]ページ先頭

©2009-2025 Movatter.jp