vrm_spec/lib.rs
1//! # vrm-spec
2//!
3//! Data structures for the [VRM](https://vrm.dev) Format.
4//!
5//! Schema definitions: <https://github.com/vrm-c/vrm-specification>
6//!
7//! ## Example
8//!
9//! ```rust
10//! use vrm_spec::vrmc_vrm_1_0::{VRMCVrmSchema, VRMC_VRM};
11//!
12//! let file = include_bytes!("../../../fixtures/VRM1_Constraint_Twist_Sample.vrm");
13//! let (doc, _, _) = gltf::import_slice(file).expect("ok");
14//! let value = doc.extension_value(VRMC_VRM).expect("exist");
15//! let vrmc_vrm: VRMCVrmSchema = serde_json::from_value(value.to_owned()).expect("ok");
16//!
17//! // do something with vrm
18//! ```
19
20mod serde_utils;
21pub mod vrm_0_0;
22pub mod vrmc_materials_mtoon_1_0;
23pub mod vrmc_spring_bone_1_0;
24pub mod vrmc_vrm_1_0;
25pub mod vrmc_vrm_animation_1_0;