Skip to content

Project Structure

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Project Structure

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

nir-rs/
├── src/
│   ├── lib.rs
│   ├── error.rs
│   ├── graph.rs           # NirGraph
│   ├── nodes.rs           # NirNode enum + structs
│   ├── types.rs           # Tensor, Metadata*
│   └── io/
│       ├── mod.rs         # read/write API, WriteOptions
│       ├── wire.rs        # keys, WIRE_TYPES (always built)
│       ├── hdf5_read.rs   # feature hdf5
│       └── hdf5_write.rs  # feature hdf5
├── tests/
│   ├── fixtures/          # real .nir from Python NIR (BSD-3)
│   ├── hdf5_*.rs
│   └── common/
├── .github/workflows/ci.yml
├── AGENTS.md / REVIEW.md
└── Cargo.toml

Features

Feature Default Effect
(none) yes Graph model only; no system deps
hdf5 off Links hdf5-metno 0.14 (not abandoned aldanor/hdf5)

Core deps

Dep Role
indexmap Insertion-ordered nodes
thiserror NirError
hdf5-metno (opt) HDF5

docs.rs builds with default features (no libhdf5 on their image).


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: df72fc9 (main)

Clone this wiki locally