| Crates.io | vrm-spec |
| lib.rs | vrm-spec |
| version | 0.1.0 |
| created_at | 2024-07-12 01:45:23.427965+00 |
| updated_at | 2025-04-08 10:05:05.443732+00 |
| description | VRM data structures |
| homepage | |
| repository | https://github.com/pixiv/vrm-utils-rs/tree/main/crates/vrm-spec |
| max_upload_size | |
| id | 1300179 |
| size | 333,409 |
Data structures for the VRM Format.
Schema definitions: https://github.com/vrm-c/vrm-specification
use vrm_spec::vrmc_vrm_1_0::{VRMCVrmSchema, VRMC_VRM};
let file = include_bytes!("../../../fixtures/VRM1_Constraint_Twist_Sample.vrm");
let (doc, _, _) = gltf::import_slice(file).expect("ok");
let value = doc.extension_value(VRMC_VRM).expect("exist");
let vrmc_vrm: VRMCVrmSchema = serde_json::from_value(value.to_owned()).expect("ok");
// do something with vrm