Skip to main content

Crate nxd_core

Crate nxd_core 

Source
Expand description

NXD core library: contracts, application services, planning, execution, providers.

§Layout (design-aligned layers inside one crate)

  • domain — pure model and policy (no I/O)
  • application — use-case orchestration
  • adapters — process/plugin/runtime edge helpers
  • execution — provider-independent execution journals

Provider implementations and host transports live in external executables.

Crate-root names (crate::contract, crate::process, …) remain stable via re-exports so call sites do not churn during the regroup.

Re-exports§

pub use progress::target::BatchOutcome;
pub use progress::target::Logger;
pub use domain::contract;
pub use domain::host_lifecycle;
pub use domain::plan;
pub use adapters::external_runtime;
pub use adapters::plugin_fixture;
pub use adapters::plugin_supervisor;
pub use adapters::process;
pub use nxd_plugin_protocol as plugin_protocol;

Modules§

adapters
Adapters and process/runtime glue (design layer: effects at the edge).
application
config
domain
Domain model and pure policy (design layer: no network/process I/O).
execution
Provider-independent persisted run journal.
ports
Application ports (dependency-inverted boundaries).
profiling
Opt-in, process-local phase timing for operator performance diagnosis.
progress
workspace
Local workspace staging used for canonical Nix evaluation.

Macros§

debug
error
failure
impl_provider_port
Implement the direct port for an existing versioned provider service without duplicating its request, response, progress, or error mapping.
info
success
warn