composure_macros 0.2.0

Procedural macros for Composure Discord bots: #[command], #[app], #[view] and rsx! markup
Documentation
1
2
3
4
5
6
7
8
9
10
use composure::{command::View, rsx, view};

#[view]
fn Card(title: String, likes: u32) -> View {
    rsx! { <Text>{title} {likes}</Text> }
}

fn main() {
    let _ = rsx! { <Card title="x"/> };
}