xso: Add support for serde_json::Value
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4780f89604
commit
ab7e6de3e1
3 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ xso_proc = { version = "0.1", path = "../xso-proc", optional = true }
|
|||
jid = { version = "0.12", path = "../jid", optional = true }
|
||||
uuid = { version = "1", optional = true }
|
||||
base64 = { version = "0.22", optional = true }
|
||||
serde_json = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ Version NEXT:
|
|||
for debug logs.
|
||||
- Support to selectively discard attributes or text content during
|
||||
parsing (!552).
|
||||
- Implement `AsXml` and `FromXml` for serde_json::Value` behind
|
||||
`serde_json` feature.
|
||||
* Changes
|
||||
- Generated AsXml iterator and FromXml builder types are now
|
||||
doc(hidden), to not clutter hand-written documentation with auto
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ convert_via_fromstr_and_display! {
|
|||
jid::DomainPart,
|
||||
#[cfg(feature = "jid")]
|
||||
jid::ResourcePart,
|
||||
|
||||
#[cfg(feature = "serde_json")]
|
||||
serde_json::Value,
|
||||
}
|
||||
|
||||
/// Represent a way to encode/decode text data into a Rust type.
|
||||
|
|
|
|||
Loading…
Reference in a new issue