gltf-validator

Crates.iogltf-validator
lib.rsgltf-validator
version0.2.3
sourcesrc
created_at2023-08-03 21:04:16.364831
updated_at2023-09-01 12:55:43.449874
descriptionA rust wrapper around the Khronos group gltf-validator tool.
homepage
repositoryhttps://github.com/kittycad/gltf-validator
max_upload_size
id934464
size56,762
crate-owners (github:kittycad:crate-owners)

documentation

README

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)
Commit count: 31

cargo fmt