Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/swlkr/ryde
- Owner: swlkr
- License: mit
- Created: 2024-02-18T23:43:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T21:01:23.000Z (6 months ago)
- Last Synced: 2024-05-22T20:09:45.272Z (6 months ago)
- Topics: axum, css, html, hypermedia, rust, ryde, single-file, single-person, sqlite, web, web-development, webdev, webdevelopment
- Language: Rust
- Homepage:
- Size: 227 KB
- Stars: 177
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.