Crates.io | gltf-validator |
lib.rs | gltf-validator |
version | 0.2.4 |
created_at | 2023-08-03 21:04:16.364831+00 |
updated_at | 2025-06-24 18:37:52.319673+00 |
description | A rust wrapper around the Khronos group gltf-validator tool. |
homepage | |
repository | https://github.com/kittycad/gltf-validator |
max_upload_size | |
id | 934464 |
size | 57,492 |
A rust library and binary wrapper around the Khronos group glTF-Validator tool.
Use it like this to validate a glTF file:
use gltf_validator::GltfValidator;
let validator = GltfValidator::new().unwrap();
let report = validator.run(&std::path::PathBuf::from("tests/cube.glb")).unwrap();
assert_eq!(report.issues.num_errors, 0);
We have a GitHub action that pushes our releases here. It is triggered by pushing a new tag. So do the following:
Cargo.toml
. Commit it and push it up to the repo.git tag -sa v$(VERSION) -m "v$(VERSION)"
git push origin v$(VERSION)