vk_parse/lib.rs
1//! This crate parses the Vulkan XML registry into a Rust object.
2//!
3//! The entry point into this library is `parse_file_as_vkxml`, which will
4//! return a `Registry` object. This object contains all the information contained
5//! in the Vulkan API registry.
6
7extern crate xml;
8
9#[cfg(feature = "serialize")]
10extern crate serde;
11
12#[cfg(feature = "vkxml-convert")]
13extern crate vkxml;
14
15#[macro_use]
16mod parse;
17mod c;
18#[cfg(feature = "vkxml-convert")]
19mod convert;
20mod types;
21
22#[cfg(feature = "vkxml-convert")]
23pub use convert::parse_file_as_vkxml;
24#[cfg(feature = "vkxml-convert")]
25pub use convert::parse_stream_as_vkxml;
26pub use parse::parse_file;
27pub use parse::parse_stream;
28pub use types::*;