programatik29/axum-server
Fork: 67 Star: 186 (更新于 2024-11-21 18:31:31)
license: MIT
Language: Rust .
High level server designed to be used with axum framework.
最后发布版本: v0.7.1 ( 2024-07-31 21:41:38)
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-11-20 07:29:29 lanyeeee/jmcomic-downloader
2024-11-19 23:39:15 gleam-lang/gleam
2024-11-19 08:50:55 lapce/lapce
2024-11-11 22:51:00 tauri-apps/tauri
2024-11-11 07:55:30 dani-garcia/vaultwarden
2024-11-09 16:42:37 rustdesk/rustdesk