1mod common;
41mod derive;
42mod registration;
43mod error;
44
45#[proc_macro_derive(HexDomain, attributes(hex))]
46pub fn derive_hex_domain(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
47 crate::derive::hex_domain::derive(input)
48}
49
50#[proc_macro_derive(HexPort, attributes(hex))]
51pub fn derive_hex_port(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
52 crate::derive::hex_port::derive(input)
53}
54
55#[proc_macro_derive(HexAdapter, attributes(hex))]
56pub fn derive_hex_adapter(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
57 crate::derive::hex_adapter::derive(input)
58}
59
60#[proc_macro_derive(HexAggregate, attributes(hex))]
61pub fn derive_hex_aggregate(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
62 crate::derive::aggregate::derive(input)
63}
64
65#[proc_macro_derive(Entity)]
66pub fn derive_entity(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
67 crate::derive::entity::derive(input)
68}
69
70#[proc_macro_derive(HexRepository)]
71pub fn derive_repository(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
72 crate::derive::repository::derive(input)
73}
74
75#[proc_macro_derive(HexDirective)]
76pub fn derive_directive(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
77 crate::derive::directive::derive(input)
78}
79
80#[proc_macro_derive(HexQuery)]
81pub fn derive_query(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
82 crate::derive::query::derive(input)
83}
84
85#[proc_macro]
86pub fn hex_domain_error(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
87 crate::error::hex_error_macro::hex_domain_error_impl(input)
88}
89
90#[proc_macro]
91pub fn hex_port_error(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
92 crate::error::hex_error_macro::hex_port_error_impl(input)
93}
94
95#[proc_macro]
96pub fn hex_adapter_error(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
97 crate::error::hex_error_macro::hex_adapter_error_impl(input)
98}
99