Expand description
Boot-time helpers shared by the framework binary and downstream
domain binaries (e.g. kglite-mcp-server).
Each helper is small enough to inline; collecting them here keeps
the duplication out of every shim’s main.rs and gives a single
place to change boot-time behaviour.
Functions§
- init_
tracing - Initialise stderr-only
tracingwithRUST_LOG=infodefault. - load_
env_ for_ mode - Load environment variables from a
.envfile before any tool that readsGITHUB_TOKEN/ API credentials runs. - maybe_
watch - Spawn the framework’s debounced filesystem watcher when the mode
requires one. Returns the handle (drop to stop watching) or
NoneifdirisNone— useful forlet _watch = …;bindings in downstream main fns. - resolve_
source_ roots - Resolve a manifest’s
source_root(s)declarations to canonical absolute path strings. Each entry must canonicalise to an existing directory; failures bubble as aManifestError.