corpora-core 0.1.0

Core domain types, immutable graph, and event bus for the corpora docs validator.
Documentation
//! Run configuration, threaded through every `Context`.

use std::path::PathBuf;

#[derive(Clone, Debug)]
pub struct Config {
    /// Corpus root the sources walk.
    pub root: PathBuf,
    pub report: ReportOptions,
}

impl Config {
    pub fn new(root: impl Into<PathBuf>) -> Self {
        Config {
            root: root.into(),
            report: ReportOptions::default(),
        }
    }
}

#[derive(Clone, Debug, Default)]
pub struct ReportOptions {
    /// `report --check`: render and byte-compare instead of writing.
    pub check: bool,
}