programatik29/axum-server
Fork: 66 Star: 178 (更新于 2024-10-30 07:41:28)
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-05 08:48:52 lapce/lapce
2024-11-04 19:47:57 dashpay/platform
2024-11-01 02:26:55 mediar-ai/screenpipe
2024-10-30 06:09:45 electric-capital/crypto-ecosystems
2024-10-29 10:21:58 rustdesk/rustdesk
2024-10-27 15:42:03 jtroo/kanata