1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#![cfg_attr(feature = "nightly", feature(proc_macro_span))]

use proc_macro::{TokenStream};

mod derive_live;
use crate::derive_live::*;

mod derive_live_atomic;
use crate::derive_live_atomic::*;

mod derive_live_hook;
use crate::derive_live_hook::*;

mod derive_live_read;
use crate::derive_live_read::*;


mod live_design_macro;
use crate::live_design_macro::*;

mod live_macro;
use crate::live_macro::*;

mod generate_cast;
use crate::generate_cast::*;

mod derive_live_registry;
use crate::derive_live_registry::*;

//#[path = "../../live_tokenizer/src/colorhex.rs"]
//mod colorhex;

#[proc_macro_derive(Live, attributes(
    alias,
    calc,
    live,
    rust,
    pick,
    state,
    live_design_fn,
    live_ignore,
    live_debug
))]
pub fn derive_live(input: TokenStream) -> TokenStream {
    derive_live_impl(input)
}

#[proc_macro_derive(LiveHook)]
pub fn derive_live_apply(input: TokenStream) -> TokenStream {
    derive_live_hook_impl(input)
}

#[proc_macro_derive(LiveRead)]
pub fn derive_live_read(input: TokenStream) -> TokenStream {
    derive_live_read_impl(input)
}

#[proc_macro]
pub fn live(input: TokenStream) -> TokenStream {
    live_impl(input)
}

#[proc_macro]
pub fn live_array(input: TokenStream) -> TokenStream {
    live_array_impl(input)
}

#[proc_macro]
pub fn live_object(input: TokenStream) -> TokenStream {
    live_object_impl(input)
}


#[proc_macro]
pub fn generate_ref_cast_api(input: TokenStream) -> TokenStream {
    generate_ref_cast_api_impl(input)
}

#[proc_macro]
pub fn generate_clone_cast_api(input: TokenStream) -> TokenStream {
    generate_clone_cast_api_impl(input)
}

#[proc_macro]
pub fn live_design(input: TokenStream) -> TokenStream {
    live_design_impl(input)
}

#[proc_macro_derive(LiveComponentRegistry)]
pub fn derive_live_component_registry(input: TokenStream) -> TokenStream {
    derive_live_component_registry_impl(input)
}

#[proc_macro_derive(LiveAtomic)]
pub fn derive_live_atomic(input: TokenStream) -> TokenStream {
    derive_live_atomic_impl(input)
}