async-xml 0.2.2

A crate for deserializing XML data asynchronously.
Documentation
use async_xml::from_str;
use async_xml_derive::FromXml;

#[tokio::test]
async fn test_xml_vec_derive() {
    let xml = r#"<report><ids>2 4 6 7</ids></report>"#;
    let de: Report = from_str(xml).await.unwrap();
    let expected = Report {
        data: vec![2, 4, 6, 7].into(),
    };
    assert_eq!(de, expected);
}

#[derive(Debug, PartialEq, FromXml)]
#[async_xml(rename = "report")]
pub struct Report {
    #[async_xml(child, rename = "ids", from = "async_xml::XmlVec<u32>")]
    pub data: Vec<u32>,
}