Crates.io | tidos |
lib.rs | tidos |
version | 0.6.10 |
created_at | 2025-03-08 20:09:40.300625+00 |
updated_at | 2025-08-18 01:41:09.865432+00 |
description | Tidos is a component framework that can be served by any web framework. |
homepage | |
repository | https://github.com/kaasbroodju/tidos |
max_upload_size | |
id | 1584772 |
size | 87,192 |
Tidos is a high-performance Rust-based component framework that seamlessly integrates with any web framework, enabling developers to build dynamic web applications with ease. With Tidos’ powerful macros, you can intuitively create components directly within your Rust code. It even allows you to leverage Rust's pattern matching, loops, and conditionals inside your components—making your UI logic more expressive and maintainable.
use tidos_macro::view;
let names = vec!["Bob", "Alice"];
view! {
{#for name in names}
<p>{format!("Hello {}!", name)}</p>
{/for}
}
use tidos::{Component, Page};
pub struct Greet {
pub name: String,
}
impl Component for Greet {
fn to_render(&self, page: &mut Page) -> String {
view! {
<h1>Hello {&self.name}</h1>
}
}
}
// Example route from Rocket, but you can use any framework you want.
#[get("/")]
pub fn index() -> Page {
page! {
<main>
<Greet name={ String::from("kaasbroodju") } />
</main>
}
}
For more examples visit our documentation.
If you're stuck or need help, reach out to the community via our Github discussions.
Contributions are absolutely, positively welcomed and encouraged! If you're interested in contributing code or documentation, please first read the code of conduct.
Additionally, you could: