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

Replace actix-web with axum #7

Merged
merged 7 commits into from
Nov 2, 2021
Merged

Replace actix-web with axum #7

merged 7 commits into from
Nov 2, 2021

Conversation

shanesveller
Copy link
Contributor

Please let me know if there is any desired format for commit message or other contributor guidance. Happy to address any feedback about the changes as well.

Copy link
Member

@clux clux left a comment

Choose a reason for hiding this comment

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

quick comments. looks great, just a few nits.

also the README also references actix quite a bit, would be good to replace that as well!

version.rs Show resolved Hide resolved
version.rs Outdated Show resolved Hide resolved
version.rs Outdated Show resolved Hide resolved
version.rs Outdated Show resolved Hide resolved
version.rs Show resolved Hide resolved
version.rs Show resolved Hide resolved
@clux clux linked an issue Nov 1, 2021 that may be closed by this pull request
README.md Outdated Show resolved Hide resolved
shanesveller and others added 7 commits November 2, 2021 18:38
Signed-off-by: Shane Sveller <shane@sveller.dev>
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
...as it's already omitted from tracing.

#7 (comment)
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
#7 (review)
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
...and remove TryFrom due to inclusion in 2021 prelude

https://doc.rust-lang.org/edition-guide/rust-2021/prelude.html
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
#7 (comment)
Signed-off-by: Shane Sveller <shanesveller@gmail.com>
@shanesveller
Copy link
Contributor Author

Sorry for the force-push, I missed my DCO on some of the additional commits.

@clux
Copy link
Member

clux commented Nov 2, 2021

This is great. Thanks a lot!

Quick comparison of compile times before and after:

actix-web 326 module - fresh cargo build

real	1m12.090s
user	6m37.061s
sys	0m27.005s

axum with 182 modules

real	0m46.762s
user	3m4.621s
sys	0m13.948s

pretty nice improvement for a small repo :-)

@clux clux merged commit 6a01142 into kube-rs:master Nov 2, 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.

Try out using axum instead of actix
3 participants