Crates.io | gdtf |
lib.rs | gdtf |
version | 0.2.0 |
source | src |
created_at | 2024-09-25 08:05:54.789289 |
updated_at | 2024-10-01 07:05:57.724335 |
description | Tools to read and inspect General Device Type Format (GDTF) files. |
homepage | https://github.com/cpdt/gdtf-rs |
repository | https://github.com/cpdt/gdtf-rs |
max_upload_size | |
id | 1386099 |
size | 311,938 |
The General Device Type Format (GDTF) is an open standard for describing devices of the entertainment industry. The latest version, 1.2, is standardised as DIN SPEC 15800:2022.
This crate provides tools to read and inspect GDTF files. This is made up of three parts:
Run the following Cargo command in your project directory:
cargo add gdtf
Or add the following line to your Cargo.toml:
gdtf = "0.2"
use gdtf_rs::GdtfFile;
let file = std::fs::File::open("Generic@RGBW8@test.gdtf").expect("failed to read file");
let gdtf = GdtfFile::new(file).expect("failed to parse gdtf");
println!("GDTF file defines {} fixture types", gdtf.description.fixture_types.len());
Provided under the MIT license.