1 unstable release

0.1.0 Apr 29, 2024

#1587 in Parser implementations

Download history 146/week @ 2024-04-26 15/week @ 2024-05-03

161 downloads per month

MIT/Apache

51KB
988 lines

xdf_rs

Rust crate for parsing (and maybe one day writing) XDF files. Currently the only supported XDF version is 1.0. (at the time of writing, this the only version that exists)

XDF format specification by SCCN

Installation

cargo add xdf

Example usage

use std::fs;
use xdf::XDFFile;
let bytes = fs::read("tests/minimal.xdf").unwrap();
let xdf_file = XDFFile::from_bytes(&bytes).unwrap();

lib.rs:

github crates

Read (and maybe one day write) XDF files Currently the only supported XDF version is 1.0. (at the time of writing, this the only version that exists)

This library provides a way to read files in the [XDF format] as specified by SCCN.

Example

let bytes = fs::read("tests/minimal.xdf")?;
let xdf_file = XDFFile::from_bytes(&bytes)?;

Dependencies

~1.5–2.3MB
~46K SLoC