Skip to main content

Crate krypt_core

Crate krypt_core 

Source
Expand description

krypt-core — the engine.

Everything that does real work lives here, behind a stable Rust API. The krypt binary (in krypt-cli) is a thin shell around this crate.

Current modules:

  • config.krypt.toml schema, parser, validator (issue #9)

  • paths${VAR} resolution with XDG defaults + platform gating (issue #11)

  • [include] — include = [...] glob expansion and config merging (issue #10)

  • copy — plan + atomic deploy of [[link]] and [[template]] entries to their resolved destinations (issue #12)

  • manifest — versioned record of what was deployed, with sha256 hashes for drift detection (issue #13)

  • deploy — high-level link / unlink / relink orchestration over the other modules (issue #15)

  • tool_config${XDG_CONFIG}/krypt/config.toml schema + I/O (issue #14)

  • initkrypt init orchestration: clone + write tool config (issue #14)

  • updatekrypt update orchestration: pull repo + re-deploy (issue #17)

  • adoptkrypt adopt / krypt adopt-edits: import existing dotfiles into the repo and sync in-place edits back (issue #16)

  • doctorkrypt doctor diagnostic health-check: prints one status line per check and serializes to JSON for --json (issue #20)

  • setupkrypt setup interactive wizard: reads [prompts] sections, asks questions, and applies one of four built-in writers (gitconfig, hypr_vars, env, generic_template) (issue #18).

Re-exports§

pub use include::expand_includes;
pub use include::load_with_includes;

Modules§

adopt
krypt adopt and krypt adopt-edits — import existing dotfiles into the repo.
config
.krypt.toml configuration schema and parser.
copy
Copy engine — deploy files from the repo to $HOME.
deploy
High-level deploy orchestration — the engine behind krypt link / krypt unlink / krypt relink.
doctor
krypt doctor — diagnostic health-check for an install.
include
#include directive — glob-based config composition.
init
Orchestration for krypt init.
manifest
Deployment manifest — record of what krypt has written to disk.
paths
Path variable resolution.
setup
Interactive setup wizard for krypt setup.
tool_config
Tool-level config at ${XDG_CONFIG}/krypt/config.toml.
update
Orchestration for krypt update.

Constants§

VERSION
Crate version, exposed for krypt --version aggregation.