Introduce Rust crate for automated serialization of XML structures
Categories
(Thunderbird :: General, task)
Tracking
(thunderbird_esr115 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr115 | --- | wontfix |
People
(Reporter: leftmostcat, Assigned: leftmostcat)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Exchange Web Services operates on requests and responses encoded as XML data structures. In order to facilitate communication with EWS, we need to be able to serialize Rust structures to and deserialize them from XML. Existing Rust crates meet our deserialization needs, but no Rust crate has been found which is sufficient to handle the other direction.
The serde data model is not a good fit for XML and so—while it's good enough for deserialization—quick_xml's serde implementation lacks needed features in serialization (namely the ability to specify namespaces and namespace prefixes). Crates like xmlserde and yaserde (despite the names) provide an alternative to the serde data model which are explicitly designed for XML, but both require a degree of explicitness in specifying data structures which is burdensome to declaring structures for a large API such as EWS and which doesn't contribute to the principle of least surprise.
| Assignee | ||
Comment 1•2 years ago
|
||
This is a straightforward mach tb-rust sync and mach tb-rust vendor.
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D199634
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/289d5d6a33ba
Update Rust dependencies from m-c rev 6497cc2893d1. r=babolivier
| Assignee | ||
Comment 4•2 years ago
|
||
Closed with the merge of https://github.com/thunderbird/xml_struct/pull/1.
Description
•