swlkr/ryde

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

Rust

326

150 commits

updated Jan 2, 2025

See the code

README

ryde

ryde is a single person web framework for rust

Install

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

Quickstart

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! {
        <!DOCTYPE html>
        <html>
            <head>
                <title>ryde with rust</title>
            </head>
            <body>
                <div>you are here {url!(get_slash)}</div>
            </body>
        </html>
    }
}

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.

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

Contributors

swlkr

148 commits

swlkr/ryde

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

Rust

326

150 commits

updated Jan 2, 2025

See the code

README

ryde

ryde is a single person web framework for rust

Install

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

Quickstart

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! {
        <!DOCTYPE html>
        <html>
            <head>
                <title>ryde with rust</title>
            </head>
            <body>
                <div>you are here {url!(get_slash)}</div>
            </body>
        </html>
    }
}

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.

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

Contributors

swlkr

148 commits

Languages

Rust

100.0%