28 releases

0.8.0 Dec 6, 2025
0.7.3 Nov 14, 2025
0.7.2 Mar 14, 2025
0.7.1 Jul 31, 2024
0.3.3 Nov 25, 2021

#11 in Asynchronous

Download history 323595/week @ 2025-10-28 310667/week @ 2025-11-04 301610/week @ 2025-11-11 359989/week @ 2025-11-18 240374/week @ 2025-11-25 297810/week @ 2025-12-02 485904/week @ 2025-12-09 390350/week @ 2025-12-16 133388/week @ 2025-12-23 193797/week @ 2025-12-30 444486/week @ 2026-01-06 531036/week @ 2026-01-13 623025/week @ 2026-01-20 567997/week @ 2026-01-27 540520/week @ 2026-02-03 528112/week @ 2026-02-10

2,339,691 downloads per month
Used in 251 crates (189 directly)

MIT license

96KB
2K 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

~11–27MB
~263K SLoC