Rust re-implementation of navis and nat core functions with a
focus on efficient algorithms for working with
rooted trees,
a special case of directed acyclic graphs (DAG) used to represent neurons.
We provide R and Python bindings.
The docs cover all three surfaces — the Rust core crate plus the Python and R bindings — and include a matrix of which functions are available in which language.
See the README for the navis and nat wrappers for instructions on installation and usage.
The package version is tracked in a single place: [workspace.package] version
in the root Cargo.toml. The Rust crates inherit it via
version.workspace = true and the Python package via maturin
(dynamic = ["version"]). To bump the version, edit that one field and run:
python scripts/sync-versions.py
python scripts/bundle-r-core.pyThree files need a literal copy of the version, all of them under the R package,
which builds outside the workspace: R/nat.fastcore/DESCRIPTION (written by the
first script) and the Cargo.toml of both the R bindings crate and its bundled
copy of fastcore (written by the second). CI checks all three stay in sync via
the same scripts with --check.