Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swlkr/ryde

ryde is a single person, single file hypermedia web framework for rust
https://github.com/swlkr/ryde

axum css html hypermedia rust ryde single-file single-person sqlite web web-development webdev webdevelopment

Last synced: 16 days ago
JSON representation

ryde is a single person, single file hypermedia web framework for rust

Awesome Lists containing this project

README

        

# ryde

ryde is a single person, single file web framework for rust

# Install

```sh
cargo add --git https://github.com/swlkr/ryde
```

# Quickstart

```rust
use 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


you are here {url!(get_slash)}



}
}
```

# More examples

Clone the repo and check out the rest of examples!

# Why

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.