nir-rs 0.4.2

Pure-Rust implementation of the Neuromorphic Intermediate Representation (NIR) — the standard interchange format for spiking neural networks.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.97.1"
name = "nir-rs"
version = "0.4.2"
authors = ["Raul Montoya Cardenas <montoyaraul34@gmail.com>"]
build = false
exclude = [
    "/.cursor/",
    "/.devcontainer/",
    "/.github/",
    "/AGENTS.md",
    "/CLAUDE.md",
    "/REVIEW.md",
    "/cubic.yaml",
    "/fuzz/",
    "/qodana.yaml",
    "/scripts/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust implementation of the Neuromorphic Intermediate Representation (NIR) — the standard interchange format for spiking neural networks."
homepage = "https://github.com/Limen-Neural/nir-rs"
documentation = "https://docs.rs/nir-rs"
readme = "README.md"
keywords = [
    "nir",
    "neuromorphic",
    "snn",
    "spiking",
    "interoperability",
]
categories = [
    "science",
    "algorithms",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Limen-Neural/nir-rs"

[package.metadata.docs.rs]
features = []

[features]
default = []
hdf5 = [
    "dep:hdf5",
    "dep:hdf5-sys",
    "dep:tempfile",
    "dep:libc",
]
serde = [
    "dep:serde",
    "indexmap/serde",
]

[lib]
name = "nir_rs"
path = "src/lib.rs"

[[example]]
name = "load_inspect_lif"
path = "examples/load_inspect_lif.rs"
required-features = ["hdf5"]

[[test]]
name = "hdf5_fixtures"
path = "tests/hdf5_fixtures.rs"

[[test]]
name = "hdf5_read_errors"
path = "tests/hdf5_read_errors.rs"

[[test]]
name = "hdf5_roundtrip"
path = "tests/hdf5_roundtrip.rs"

[[test]]
name = "hdf5_untrusted"
path = "tests/hdf5_untrusted.rs"

[[test]]
name = "hdf5_write_errors"
path = "tests/hdf5_write_errors.rs"

[[test]]
name = "prop_hdf5"
path = "tests/prop_hdf5.rs"

[[test]]
name = "prop_invariants"
path = "tests/prop_invariants.rs"

[[test]]
name = "serde_debug"
path = "tests/serde_debug.rs"

[dependencies.hdf5]
version = "0.14"
optional = true
package = "hdf5-metno"

[dependencies.hdf5-sys]
version = "0.12"
optional = true
package = "hdf5-metno-sys"

[dependencies.indexmap]
version = "2"

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.proptest]
version = "1.6"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"