ryde 为单人,Rust的单文件网络框架
ryde is a single person web framework for rust
cargo add --git https://github.com/swlkr/rydeuse ryde::*;
#[router]
fn router() -> Router {
Router::new().route("/", get(get_slash))
}
#[main]
async fn main() {
serve("::1:9001", router()).await
}
async fn get_slash() -> Html {
html! {
ryde with rust
}
}Clone the repo and check out the rest of examples!
The goal of ryde is to destroy all boilerplate. Every keystroke you write should mean something. This goal is achieved through pervasive use of the science of macro-ology to define a web development DSL on top of axum, tokio and sqlite.
暂无开放 Issues,或尚未同步最近议题。