duesee / imap-codec

Rock-solid and complete codec for IMAP
Apache License 2.0
37 stars 14 forks source link

experiment: Compile-time validation. #328

Open duesee opened 1 year ago

duesee commented 1 year ago

Can we have compile-time validated values such as tags, atoms, or sequences? To my knowledge, Rust has no equivalent to C++' consteval. But we could simulate this using macros, such as tag!(), atom!(), sequence_set!().