SDKBetasince v0.6.0

Rust SDK

Read-only crate for consuming .nsz artifacts from Rust services — dashboards, CI checks, benchmark aggregators.

Audience: Platform engineersRead: 5 minSource

Install

Cargo.toml·
·bash
[dependencies]
neuronscope = "0.6"

Example

main.rs·
·rust
use neuronscope::Artifact;

fn main() -> anyhow::Result<()> {
    let a = Artifact::open("baseline.nsz")?;
    println!("arch fingerprint: {}", a.fingerprint().arch);
    for layer in a.layers() {
        println!("{}: {:?} {}", layer.name, layer.shape, layer.dtype);
    }
    Ok(())
}

Scope

  • Read .nsz artifacts with zero-copy over mmap.
  • Compute the standard comparison metrics against another artifact.
  • Emit the same JSON as ns show --json.
Related