Skip to main content

Module core

Module core 

Source
Expand description

Shared kernel used by nearly every other module.

  • types — domain types (Eval, RunRecord, Assertion, GradingResult, …)
  • contextRunContext detection from parsed flags / environment
  • run_mode — dispatch mechanism (in-session vs. one-shot CLI)
  • runtime — runtime helpers (git spawning)

The submodules are re-exported flat here so downstream code writes crate::core::Eval rather than crate::core::types::Eval.

Re-exports§

pub use context::ContextError;
pub use context::DetectInput;
pub use context::Harness;
pub use context::RunContext;
pub use context::detect_run_context;
pub use run_mode::DispatchMechanism;
pub use run_mode::HarnessRunCapabilities;
pub use run_mode::capabilities_for;
pub use run_mode::mechanism_for;
pub use runtime::GitOutput;
pub use runtime::run_git;
pub use types::*;

Modules§

context
RunContext detection.
run_mode
Run mode — how an eval is dispatched, independent of which harness runs it.
runtime
Runtime helpers.
types
Core domain types.