MyGit

programatik29/axum-server

Fork: 68 Star: 189 (更新于 2024-12-16 12:59:49)

license: MIT

Language: Rust .

High level server designed to be used with axum framework.

最后发布版本: v0.7.1 ( 2024-07-31 21:41:38)

GitHub网址

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

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.

最近版本更新:(数据更新于 2024-10-11 10:25:39)

2024-07-31 21:41:38 v0.7.1

2024-07-31 00:36:22 v0.7.0

2023-12-23 03:34:47 v0.6.0

2023-05-16 00:57:52 v0.5.1

2023-05-05 00:44:03 v0.5.0

2023-03-19 21:21:47 v0.4.7

2023-02-18 16:33:41 v0.4.5

2022-11-04 00:20:33 v0.4.3

2022-08-06 00:06:39 v0.4.2

2022-07-29 20:41:29 v0.4.1

主题(topics):

axum, hyper, rust

programatik29/axum-server同语言 Rust最近更新仓库

2024-12-22 08:48:41 lapce/lapce

2024-12-19 20:41:09 tw93/Pake

2024-12-19 19:31:32 dashpay/platform

2024-12-18 10:31:25 DioxusLabs/dioxus

2024-12-17 17:18:34 lanyeeee/jmcomic-downloader

2024-12-16 23:19:51 meilisearch/meilisearch