Skip to content

Muddanak/axum-bits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axum bits and pieces (Also a WIP)

Basic implementations for anyone to view to get started with Axum

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

Added in some medium-level additions

How to run each module

cargo run --bin start from the main axum-bits directory

Current Modules

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
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

[dependencies]

axum

serde

serde_json

tokio

tower_http


MIT License

About

Some samples of Axum Rust implementations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published