Skip to main content

ensure_libxml_init

Function ensure_libxml_init 

Source
pub fn ensure_libxml_init()
Expand description

Initialize libxml2 for thread safety. Must be called before any libxml2 operations that don’t go through libxml::parser::Parser. Delegates to the safe wrapper in rust-libxml, which uses its own std::sync::Once to guarantee exactly-once initialisation even across threads.

See: https://dev.w3.org/XInclude-Test-Suite/libxml2-2.4.24/doc/threads.html