async-xml 0.2.2

A crate for deserializing XML data asynchronously.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use async_xml::from_str;
use async_xml_derive::FromXml;

#[tokio::test]
async fn test() {
    let xml = r#"<a></a>"#;
    let de: A = from_str(xml).await.unwrap();
    let expected = A {};
    assert_eq!(de, expected);
}

#[derive(Debug, PartialEq, FromXml)]
struct A {}