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
11
12
13
14
15
16
17
use composure::{command::View, rsx, view};

#[view]
fn Card(title: String) -> View {
    rsx! {
        <Container>
            <Button custom_id="x">"Loose"</Button>
            <Text>{title}</Text>
        </Container>
        <Row>"Text"</Row>
    }
}

fn main() {
    // The Props and their builder are still generated
    let _ = rsx! { <Card title="Hi"/> };
}