Implement procedural macro to derive {To,From}Sql traits

With this macro it is possible to #[derive(ToSql, FromSql)] for enums, that do
not contain data (C-style).
This commit is contained in:
Dmitry Bogatov
2019-08-10 17:44:39 +00:00
parent 24b025f573
commit ed66f36cb5
5 changed files with 72 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
[package]
name = "deltachat_derive"
version = "0.1.0"
authors = ["Dmitry Bogatov <KAction@debian.org>"]
edition = "2018"
[lib]
proc-macro = true
[dependencies]
syn = "0.14.4"
quote = "0.6.3"