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

@@ -10,6 +10,7 @@ cc = "1.0.35"
pkg-config = "0.3"
[dependencies]
deltachat_derive = { path = "./deltachat_derive" }
libc = "0.2.51"
pgp = { version = "0.2", default-features = false }
hex = "0.3.2"
@@ -53,7 +54,8 @@ pretty_env_logger = "0.3.0"
[workspace]
members = [
"deltachat-ffi"
"deltachat-ffi",
"deltachat_derive",
]
[[example]]