harness-lock-core 0.1.0

Core library for harness-lock: manifest, lockfile, store, tuning.
Documentation
//! Core library for **harness-lock** (`hlock`).
//!
//! Implements the manifest, the lockfile, the content-addressed store, task
//! packs, the deterministic reference provider/harness, the search layer, and
//! the tuner — the same v0.1 surface as the (now reference) Python
//! implementation, in Rust. The [`flyte`] backend and the PyO3 Python bindings
//! live in sibling crates.
//!
//! The Python-facing API mirrors [`lock`](tuner::Tuner::tune) and the lockfile
//! model so the user surface stays stable across the language boundary.

pub mod adapters;
pub mod error;
pub mod hash;
pub mod lockfile;
pub mod manifest;
pub mod ops;
pub mod providers;
pub mod search;
pub mod store;
pub mod tasks;
pub mod tuner;
pub mod worker;

#[cfg(feature = "flyte")]
pub mod flyte;

pub use adapters::HarnessAdapter;
pub use error::{Error, Result};
pub use hash::{content_hash, sha256_hex, sha256_text};
pub use lockfile::Lockfile;
pub use manifest::Manifest;
pub use store::Store;
pub use tuner::Tuner;
pub use worker::Backend;

/// Schema version of the `harness.lock` lockfile.
pub const LOCK_VERSION: i64 = 1;
/// Default output filename for the lockfile.
pub const LOCKFILE_PATH: &str = "harness.lock";
/// Default manifest filename.
pub const MANIFEST_PATH: &str = "harness.toml";