Skip to content

Examples to help translate the actix-web examples in Zero To Production In Rust to axum

Notifications You must be signed in to change notification settings

CLEckhardt/zero2prod-axum-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zero2prod axum examples

In case you are working through the book Zero To Production In Rust but want to use axum instead of actix-web, this repo contains examples to help with that translation.

This repo will not contain all actix-web code in the book translated into axum. It will only contain the minimum examples required to help you implement the patterns in Zero2Prod in axum.

Why is this necessary?

While actix-web and axum serve the same purpose, they were developed via different approaches. Because of this, the Zero2Prod pattern translations from actix-web to axum aren't one-to-one; we can't simply swap actix_web:: for axum::. This repo demonstrates the changes we must make to use axum with the Zero2Prod patterns.

About

Examples to help translate the actix-web examples in Zero To Production In Rust to axum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages