Feel free to use this as a getting-started guide for a quick setup for Axum. I wouldn't exactly call this an Axum tutorial, just more a demo of using it. I'll add more in time. Any examples you want to see here put in an issue ticket with "REQUEST: " in the title and I'll see if I can get to it in a timely manner!
The starting point is the aptly named start
Then you can look at either responders or extractors
cargo run --bin <module>
from the main axum-bits
directory
Module Name | Description |
---|---|
start | basic Axum server |
responders | Demo of Axum Response |
extractors | Demo of Axum Extractor |
htmlfile | Demo of serving a static HTML file with tower_http |
htmlstatic | Demo of statically storing an HTML file to serve as a route |
logging | Demo of debug logging using tracing_subscriber middleware |
state | Demo of how to send a state of data with the server |
state-modification | Demo of how to modify the state inside of the server with Arc and Mutex |
MIT License