Crates.io | rxml_proc |
lib.rs | rxml_proc |
version | 0.11.0 |
source | src |
created_at | 2021-08-18 11:48:32.494184 |
updated_at | 2024-06-15 10:49:05.61352 |
description | Macros to, at compile time, validate strings against the CData, Name and NCName productions from the XML 1.0 grammar. |
homepage | |
repository | https://codeberg.org/jssfr/rxml |
max_upload_size | |
id | 438948 |
size | 5,154 |
rxml_proc
— Compile-time validation of CData, Name and NCName stringsThis crate is supplementary to the rxml
crate. It provides three macros (xml_cdata!
, xml_name!
and xml_ncname!
) which convert a normal &str
into the corresponding rxml
string type for strong typing of XML string flavors.
Please see the rxml crate for more information.
use rxml::NCNameStr;
use rxml_proc::xml_ncname;
const XML_PREFIX: &'static NCNameStr = xml_ncname!("xml");