rxml_proc

Crates.iorxml_proc
lib.rsrxml_proc
version0.10.0
sourcesrc
created_at2021-08-18 11:48:32.494184
updated_at2024-03-16 16:36:34.268985
descriptionMacros to, at compile time, validate strings against the CData, Name and NCName productions from the XML 1.0 grammar.
homepage
repositoryhttps://codeberg.org/jssfr/rxml
max_upload_size
id438948
size5,753
Jonas Schäfer (horazont)

documentation

README

rxml_proc — Compile-time validation of CData, Name and NCName strings

This 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.

crate badge docs badge

Please see the rxml crate for more information.

Example

use rxml::NCNameStr;
use rxml_proc::xml_ncname;

const XML_PREFIX: &'static NCNameStr = xml_ncname!("xml");
Commit count: 0

cargo fmt