logix_type/
lib.rs

1#![deny(warnings, clippy::all)]
2#![allow(clippy::len_without_is_empty)]
3
4mod action;
5pub mod error;
6mod loader;
7mod parser;
8mod span;
9pub mod token;
10pub mod type_trait;
11pub mod types;
12
13pub use crate::{loader::LogixLoader, parser::LogixParser};
14pub use logix_type_derive::LogixType;
15pub use type_trait::LogixType;
16
17// NOTE(2023.10): This is a work-around to test that compilation works
18/// ```
19/// use logix_type::LogixType;
20///
21/// #[derive(LogixType)]
22/// struct Hello {
23///     a: u32,
24///     b: u32,
25/// }
26///```
27// NOTE(2023.10): This is a work-around to test that compilation fails
28/// ```compile_fail
29/// use logix_type::LogixType;
30///
31/// #[derive(LogixType)]
32/// union Hello {
33///     a: u32,
34///     b: u32,
35/// }
36/// ```
37struct _Dummy;