Crate rust_stdf

source ·
Expand description

rust-stdf is a library for parsing Standard Test Data Format (STDF) files of version V4 and V4-2007.

Current capability:

  • Reading & parsing STDF files.
  • Reading & parsing ATDF files. (feature: atdf)
  • Support several compressed formats.

Available features:

  • gzip: gzip compression (.gz) support powered by flate2
  • bzip: bzip compression (.bz2) support powered by bzip2
  • zipfile: zip compression (.zip) support powered by zip
  • atdf: ATDF reader + STDF -> ATDF convertor (in dev)
  • serialize: serialize STDF records by serde

In development:

  • (dev) Dump StdfRecord to a new stdf file.
  • (dev) Functions for ATDF <-> STDF format.

Modules

This module contains STDF Reader and record iterator
This module contains constants for STDF Record type check and some help functions

Structs

Enums

This enum is for STR that introduced in STDF V4-2007.
StdfRecord is the data that returned from StdfReader iterator.
This enum is for storing generic data V1, the data type is the field name.

Type Definitions

Altough B1 can be treated as u8, but its representation in ATDF is differ from U1, so I used a array of one u8 for B1
Rust char is 4 bytes long, however STDF char is only 1 byte we will read u8 from file stream and convert to Rust char during parse step