Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/holger

server/repository/file-rust/Cargo.toml

[package]
name = "holger-rust-file-repository"
# 0.6.10: local source DRIFTED from the published 0.6.9 under the same version number.
# crates.io bytes are immutable, so the edit can only reach consumers as a new
# version. Bumped 2026-08-23 by the release cascade: Gate B refused nornir 0.5.5
# because the published copies of this repo are stale.
version.workspace = true
edition = "2021"
authors = ["Ignalina ApS", "Vetra Automation AB"]

description = "Rust / Cargo repository backend for holger, disk-backed and WRITABLE — speaks the same Cargo sparse protocol as holger-rust-znippy-repository but over a live loose-file tree, so it can accept `cargo publish`."
license = "AGPL-3.0-only"
repository = "https://git.gunnar.rs/nordisk/holger"
categories = ["command-line-utilities","development-tools"]
keywords = ["rust", "cargo", "cratesio", "sparse-index", "registry"]
# Development notes, agent instructions and machine-local tooling stay in the
# repository; they are not part of the published crate.
exclude = [
    ".nornir/",
]

# Importable crate name is `repository_file_rust` (the alias dependents already
# use via `package = "holger-rust-file-repository"`). Without this the crate's own
# `examples/get_path.rs` — which imports `repository_file_rust` — fails to compile
# under `cargo test --workspace` (it was previously masked by the protoc build-
# script failing first).
[lib]
name = "repository_file_rust"


[dependencies]

anyhow = "1.0.104"

traits = { package = "holger-traits", version = "3.0.0", path = "../../../traits" }


# sha2 + hex are kept ONLY for the bounded-RAM streaming digest
# (`crate_sha256_hex_streaming`, which chunks an on-disk crate through the hasher).
# The one-shot in-memory digest consumes the edda leaf below.
sha2 = "0.11"
hex = "0.4.3"
# REUSE-law: the ONE shared content-hash primitive (edda `nornir_hash::sha256_hex`)
# for the one-shot in-memory Cargo `cksum`; identical bytes to the streaming sibling.
nornir-hash = { version = "0.1.1" }

[[example]]
name = "get_path"

# nornir-testmatrix functional-status emitter — gated, optional, compiled OUT for
# release. `--features testmatrix` turns the self-test emit calls into real rows
# that `nornir test` reads; OFF by default the dep is never pulled.
[dependencies.nornir-testmatrix]
version = "0.2.13"
optional = true

[features]
testmatrix = ["dep:nornir-testmatrix", "nornir-testmatrix/testmatrix"]

[dev-dependencies]
traits = { package = "holger-traits", path = "../../../traits", features = ["test-support"] }