MyGit
🚩收到GitHub仓库的更新通知

programatik29/axum-server

Fork: 47 Star: 164 (更新于 2024-05-17 07:11:14)

license: MIT

Language: Rust .

High level server designed to be used with axum framework.

最后发布版本: v0.6.0 ( 2023-12-23 03:34:47)

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

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

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-04-27 08:42:08)

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

2022-04-18 18:47:33 v0.4.0

2021-11-17 15:04:53 v0.3.2

主题(topics):

axum, hyper, rust

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

2024-05-20 09:16:05 lapce/lapce

2024-05-19 19:06:52 actix/actix-web

2024-05-18 17:46:26 extrawurst/gitui

2024-05-18 09:51:52 slawlor/ractor

2024-05-17 21:48:26 tailcallhq/tailcall

2024-05-17 20:37:18 hyperium/h2