Skip to main content

Crate nixfetch

Crate nixfetch 

Source
Expand description

nixfetch — fixed-output fetchers + NAR / flat hash verify (id_effect).

Re-exports§

pub use caps::ClockKey;
pub use caps::FsPathIo;
pub use caps::GitFetch;
pub use caps::GitFetchKey;
pub use caps::HttpFetch;
pub use caps::HttpFetchKey;
pub use caps::LiveGitFetch;
pub use caps::LiveHttpFetch;
pub use caps::MockGitFetch;
pub use caps::MockHttpFetch;
pub use caps::MockPathIo;
pub use caps::NixfetchEnv;
pub use caps::PathIo;
pub use caps::PathIoKey;
pub use caps::StdClock;
pub use caps::live_providers;
pub use caps::mock_env_with;
pub use caps::mock_providers;
pub use commands::cmd_fetch_git;
pub use commands::cmd_fetch_url;
pub use commands::cmd_hash;
pub use commands::cmd_store_path;
pub use commands::cmd_verify;
pub use error::InfraError;
pub use hash_parse::ExpectedHash;
pub use hash_parse::format_digest;
pub use hash_parse::format_hex;
pub use hash_parse::format_nix32;
pub use hash_parse::parse_expected_hash;
pub use hash_parse::verify_digest;
pub use ingest::hash_flat_bytes;
pub use ingest::hash_flat_path;
pub use nar::hash_path_recursive;
pub use nar::nar_bytes;
pub use nar::nar_serialize;
pub use verify::digest_report;
pub use verify::make_fixed_output_path;

Modules§

caps
Capability keys and providers for nixfetch DI 3.0.
commands
Effect command programs for nixfetch.
error
Error types for nixfetch.
hash_parse
Parse and format expected/actual SHA256 digests (SRI, hex, Nix base32).
ingest
Flat file/byte SHA256 hashing.
nar
Nix Archive (NAR) serializer + recursive path hashing.
verify
Verify helpers and store-path projection.

Enums§

Exit
Final outcome of an effect: either a success value or a structured failure Cause.