xso-proc: start making derive macros for FromXml and IntoXml
For now, these macros only support empty elements. Everything else will be rejected with a compile-time error.
This commit is contained in:
parent
9ec9a0f0c6
commit
0adfd1218b
10 changed files with 662 additions and 1 deletions
24
xso-proc/Cargo.toml
Normal file
24
xso-proc/Cargo.toml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[package]
|
||||
name = "xso_proc"
|
||||
version = "0.0.2"
|
||||
authors = [
|
||||
"Jonas Schäfer <jonas@zombofant.net>",
|
||||
]
|
||||
description = "Macro implementation of #[derive(FromXml, IntoXml)]"
|
||||
homepage = "https://xmpp.rs"
|
||||
repository = "https://gitlab.com/xmpp-rs/xmpp-rs"
|
||||
keywords = ["xso", "derive", "serialization"]
|
||||
license = "MPL-2.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
quote = "^1"
|
||||
syn = { version = "^2", features = ["full", "extra-traits"] }
|
||||
proc-macro2 = "^1"
|
||||
|
||||
[features]
|
||||
panicking-into-impl = ["minidom"]
|
||||
minidom = []
|
||||
Loading…
Reference in a new issue