proc macros used in my F1 related discord bots.
- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| readme.md | ||
F1 Bot Macros
This Proc-Macro library will make enums Database (LibSQL) ready and add a couple nice impls.
Usage
notifbot_enum!{
pub enum MyEnum {
VariantA,
VariantB,
VariantC
}
}
The resulting Enum will be #[repr(u8)] and have impls for:
serde::Serializeserde::DeserializeLibsql::IntoValueCopy + CloneHashEq + PartialEqDisplayFrom<MyEnum> for i8From<MyEnum> for &'static str
License
This Library is Licensed under the MIT License (see License)