parco-xml

Crates.ioparco-xml
lib.rsparco-xml
version0.2.1
created_at2026-01-12 00:34:12.004537+00
updated_at2026-01-18 19:28:40.419313+00
descriptionParco XML
homepagehttps://github.com/williamcparks/parco-xml
repositoryhttps://github.com/williamcparks/parco-xml
max_upload_size
id2036771
size7,749
(williamcparks)

documentation

README

Parco XML

Parco XML is a zero-copy XML serialization library that targets Exclusive XML Canonicalization i.e: exc-c14n for Rust that also exports quick_xml to handle deserialization

Usage

use parco_xml::{Xml, xml};

struct MyXML<'a> {
    id: &'a str,
    value: &'a str,
}

// automatically impl `Xml` trait
xml! {
    // ref indicates you have a lifetime in your type
    // write `use MyXML;` if you don't have a lifetime
    ref MyXML;

    // place your namespaces here
    @ns {
        myxml = "uri:myxml",
    }

    myxml:Element my_const_attr="constant" id=(self.id) {
        (self.value)
    }
}

Control Structures

Commit count: 16

cargo fmt