#gltf #validation #group #khronos #wrapper #tool #binary

bin+lib gltf-validator

A rust wrapper around the Khronos group gltf-validator tool

5 releases

0.2.3 Sep 1, 2023
0.2.2 Aug 25, 2023
0.2.1 Aug 17, 2023
0.2.0 Aug 3, 2023
0.1.0 Aug 3, 2023

#1022 in Parser implementations

Download history 15/week @ 2023-12-27 22/week @ 2024-01-03 9/week @ 2024-01-24 2/week @ 2024-01-31 6/week @ 2024-02-21 13/week @ 2024-02-28 11/week @ 2024-03-13 15/week @ 2024-03-20 10/week @ 2024-03-27 18/week @ 2024-04-03 5/week @ 2024-04-10

53 downloads per month

MIT license

17KB
248 lines

gltf-validator

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);

Publishing a new release

We have a GitHub action that pushes our releases here. It is triggered by pushing a new tag. So do the following:

  1. Bump the version in Cargo.toml. Commit it and push it up to the repo.
  2. Create a tag with the new version: git tag -sa v$(VERSION) -m "v$(VERSION)"
  3. Push the tag to the repo: git push origin v$(VERSION)

lib.rs:

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);

Dependencies

~3–16MB
~198K SLoC