Skip to content

Releases: swlkr/ryde

jsx my life up

07 May 22:10
Compare
Choose a tag to compare

jsx my life up

  • Gone is the "monorepo", now there's just two crates! ryde and ryde_macros
  • Simplified api
  • Jsx instead of builder syntax
  • css crate is gone, just use tailwind

Here's a quick look:

use ryde::*;

routes!(
    ("/", get(get_slash)),
    ("/*files", get(get_files))
);

embed_static_files!("static");

#[main]
async fn main() {
    serve("::1:9001", routes()).await
}

async fn get_slash() -> Html {
    html! {
        <!DOCTYPE html>
        <html lang="en">
            <head>
                <title>ryde with rust</title>
                {render_static_files!()}
            </head>
            <body>
                <h1 class="text-2xl">ryde with rust</h1>
            </body>
        </html>
    }
}

Changes

New Contributors

Full Changelog: 0.1.3...0.3.0

0.1.3

18 Mar 21:34
Compare
Choose a tag to compare

What's Changed

New Contributors

New stuff

  • Add a listen! macro instead of fn main() {} (looks cool)
  • Add replace fn in html, kind of like an integrated htmx coming at some point
  • Better crud generation from sql for select *

Full Changelog: 0.1.2...0.1.3

Initial release!

18 Mar 20:44
e3a052b
Compare
Choose a tag to compare

Full Changelog: https://github.com/swlkr/ryde/commits/0.1.2

Forgot to update github releases.