Architecture
Dependencies and licences
Dependencies come from crates.io only, under permissive licences, and the policy file records a reason for every exception.
The policy
The product is licensed under Apache-2.0, and the NOTICE file accompanies every distribution. All dependencies are declared in [workspace.dependencies] of the root Cargo.toml and are checked by the policy file deny.toml with cargo deny --locked check, described in docs/conventions/licensing.md. The check evaluates the dependency graph for eight targets (x86-64 and aarch64 for Linux glibc, Linux musl, macOS and Windows MSVC) with all features enabled. Its rules:
- Sources. Dependencies come from the crates.io registry only. An unknown registry and a git dependency are denied.
- Advisories. Vulnerable, unsound and unmaintained crates are errors, and yanked crates are denied. The one ignored advisory in 0.1.2 is RUSTSEC-2026-0543 (
chrono, unmaintained, no reported vulnerability), with a recorded reason:macos-unifiedlogsandrussh-utilrequire it. - Licences. Only the licences below are allowed. Copyleft licences, GPL, LGPL and AGPL in every version, and licences that restrict the field of use are rejected. An expression with alternatives is accepted when one alternative is allowed, and the permissive alternative is the one used.
- Bans. Wildcard version requirements are denied and multiple versions of one crate produce a warning. Eleven crates are banned by name, each with a reason, among them
opensslandopenssl-sys(TLS uses rustls),git2andlibgit2-sys(Git support uses gix),curl-sys(HTTP uses ureq),sequoia-openpgp(LGPL; OpenPGP signatures are made by GnuPG),libsystemd-sys(LGPL; system journal files are read natively, withzbusfor the bus),serde_yaml(unmaintained; documents usesaphyr) andunrar(its licence forbids creating a RAR compressor).
| Allowed licences |
|---|
0BSD, Apache-2.0, Apache-2.0 WITH LLVM-exception, BSD-2-Clause, BSD-3-Clause, BSL-1.0, CC0-1.0, ISC, MIT, MIT-0, Unicode-3.0, Unlicense, Zlib |
Five exceptions apply to one crate each, after an individual review: webpki-roots (CDLA-Permissive-2.0, Mozilla root certificates as data, a fallback when the operating system store is unavailable), libbz2-rs-sys (bzip2-1.0.6), uluru and option-ext (MPL-2.0, unmodified transitive dependencies of the Git library and of the WebAssembly runtime cache) and libfuzzer-sys (NCSA, linked only into fuzzing targets and never into distributed artifacts). The product does not embed or link code of GPL or LGPL programs such as shells, GNU core utilities, Git, BusyBox, GNU Readline or libsystemd.
Code copied from another project enters the repository when its licence is on the allowed list, its origin and licence are stated at the top of the file, and the notices its licence requires are added to NOTICE. The vendored crates jaq-json and nurt-pdf-extract follow this rule (the crates). Every source file in a format with comments starts with the three-line producer header, and the licence of the product is stated in the LICENSE file only.
Categories of dependencies
Release 0.1.2 locks 900 packages in Cargo.lock, including the workspace crates. The versions below are those of the lock file.
| Category | What is used | Notes |
|---|---|---|
| Git implementation | the gix family, gix 0.91.0 and its sub-crates, in Rust |
git2 and libgit2 are banned. SSH transport uses russh 0.65.4. OpenPGP signatures are made by GnuPG, started as a program; SSH signatures are made in the process |
| Language parsers | logos and winnow for the language; jaq-core and jaq-std with the vendored jaq-json for queries |
|
| Document parsers | toml_edit, saphyr, jsonc-parser, quick-xml, csv, plist, rust-ini |
layout-preserving editing of documents is the task of nurt-doc |
| Source code | tree-sitter 0.27.2, ast-grep-core 0.51.3 and the grammars of Go, Rust, Python, JavaScript, TypeScript, C, C++, Java, Ruby, C#, PHP, Bash, PowerShell, JSON, YAML, TOML, Markdown, HTML, CSS, Kotlin, Swift and XML |
the grammars are compiled from source with a C compiler |
| SQLite | rusqlite 0.43.0 with the bundled feature, libsqlite3-sys 0.40.0 |
SQLite is compiled from source, not taken from the system |
| Archives and compression | zip 9.8.1, tar, flate2, bzip2, liblzma with the static feature, lz4_flex, zstd, sevenz-rust2, lzma-rust2 |
|
the vendored nurt-pdf-extract on lopdf 0.47.0 |
text extraction | |
| Network | ureq 3.5.2, rustls 0.23.46, hickory-resolver 0.26.3, socket2, rustls-native-certs |
TLS and HTTP are implemented in Rust |
| Async runtime | tokio 1.54.1, axum 0.8.9, rmcp 3.12.0 |
used by the Model Context Protocol server; the SSH transport uses a current-thread runtime |
| Extensions | wasmtime 51.0.0, libloading |
WebAssembly host and native libraries |
| Command line | clap, reedline, crossterm |
|
| Operating system | rustix, nix, libc, windows-sys, windows, windows-service, zbus, notify, sysinfo |
macos-unifiedlogs reads macOS log archives |
| Node.js addon | napi 3.16.2 |
crate nurt-node |
What is in the executable
The file system, text, archive, document, code, version control, network and system operations are implemented in the program and do not invoke external tools. Programs are started where a command is defined to start them: a program the user runs through run, GnuPG for OpenPGP signatures, the elevation backends sudo, doas and run0, and the package managers of the commands package.install, package.remove and package.upgrade. SQLite and the tree-sitter grammars are built from the bundled source, which is why building from source needs a C compiler.
| Build | Linking |
|---|---|
| Linux, glibc | links libc.so.6, libm.so.6, libgcc_s.so.1 and the dynamic loader. The .deb and .rpm packages declare them. Every other library is part of the executable, among them liblzma (XZ Utils 5.8.4, built from bundled source) |
| Linux, musl | linked statically. The library archive of the musl targets holds the static libnurt.a |
| Windows, MSVC | the Microsoft Visual C++ runtime is linked statically (crt-static) |
| macOS | liblzma is linked statically |
Changes of dependencies in 0.1.1
Release 0.1.1 (27 November 2026) changed the dependencies and the linking as follows.
gixand its sub-crates moved to the 0.91 generation, which no longer depends onheapless0.8 (nine advisories, RUSTSEC-2026-0574 to RUSTSEC-2026-0582).- The unused
netstat2dependency and the AVIF encoder of theimagecrate (ravif,rav1e) were removed. This removed the unmaintainedpastecrate (RUSTSEC-2024-0436). - OpenPGP signatures of commits and tags are made and checked by GnuPG instead of the
pgpcrate, which removedrsa0.9 (RUSTSEC-2023-0071) andcrypto-bigint0.5 (RUSTSEC-2026-0387). The program named bygpg.openpgp.programorgpg.program(gpgby default) runs through the program service. A failing program refuses the signature withE_GIT_SIGN, and verification without it reports the statusunsupported. - The text extraction of
pdf-extract0.12.1 became the workspace cratenurt-pdf-extractonlopdf0.47, which does not need the unmaintainedttf-parser(RUSTSEC-2026-0192). - The
chronofeature was switched off forcroner,lopdf,rmcpand, through it,schemars.chronostays in the graph throughmacos-unifiedlogsandrussh-util, anddeny.tomlrecords the reason. - On Linux the executable and the library link liblzma statically, so the program runs on a system without
liblzma.so.5, and the.debpackage does not depend onliblzma5. nurt-servicecompiles forx86_64-unknown-linux-musl, and the release procedure builds the static musl archive.
The lock files of the fuzz targets were regenerated as well. The supply chain page describes the checks of the supply chain, and the licence page holds the licence of the code.