27 releases

new 0.7.3 Nov 14, 2025
0.7.2 Mar 14, 2025
0.7.1 Jul 31, 2024
0.6.0 Dec 22, 2023
0.3.3 Nov 25, 2021

#9 in Asynchronous

Download history 109512/week @ 2025-07-27 95145/week @ 2025-08-03 144165/week @ 2025-08-10 265824/week @ 2025-08-17 222477/week @ 2025-08-24 212375/week @ 2025-08-31 228658/week @ 2025-09-07 233262/week @ 2025-09-14 243559/week @ 2025-09-21 246420/week @ 2025-09-28 283258/week @ 2025-10-05 281059/week @ 2025-10-12 265150/week @ 2025-10-19 320139/week @ 2025-10-26 312404/week @ 2025-11-02 283772/week @ 2025-11-09

1,192,459 downloads per month
Used in 189 crates (144 directly)

MIT license

87KB
1.5K SLoC

License Crates.io Docs

axum-server

axum-server is a hyper server implementation designed to be used with axum framework.

This project is maintained by community independently from axum.

Features

  • HTTP/1 and HTTP/2
  • HTTPS through rustls.
  • High performance through hyper.
  • Using tower make service API.
  • Very good axum compatibility. Likely to work with future axum releases.

Usage Example

A simple hello world application can be served like:

use axum::{routing::get, Router};
use std::net::SocketAddr;

#[tokio::main]
async fn main() {
    let app = Router::new().route("/", get(|| async { "Hello, world!" }));

    let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
    println!("listening on {}", addr);
    axum_server::bind(addr)
        .serve(app.into_make_service())
        .await
        .unwrap();
}

You can find more examples here.

Minimum Supported Rust Version

axum-server's MSRV is 1.82.

Safety

This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% safe Rust.

License

This project is licensed under the MIT license.

Dependencies

~6–20MB
~246K SLoC