#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
pub mod action;
pub mod build;
pub mod config;
pub mod db;
pub mod report;
pub mod sandbox;
pub mod scan;
pub mod summary;
mod init;
pub mod logging;
mod tui;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
#[derive(Debug)]
pub struct Interrupted;
impl std::fmt::Display for Interrupted {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Interrupted")
}
}
impl std::error::Error for Interrupted {}
#[derive(Clone, Debug)]
pub struct RunContext {
pub shutdown: Arc<AtomicBool>,
}
impl RunContext {
pub fn new(shutdown: Arc<AtomicBool>) -> Self {
Self { shutdown }
}
}
pub use action::{Action, ActionType, FSType};
pub use build::{Build, BuildCounts, BuildOptions, BuildOutcome, BuildResult, BuildSummary};
pub use config::{Config, Options, Pkgsrc, PkgsrcEnv, Sandboxes};
pub use db::Database;
pub use report::write_html_report;
pub use sandbox::Sandbox;
pub use scan::{ResolvedPackage, Scan, ScanResult, ScanSummary, SkipReason, SkippedCounts};
pub use summary::generate_pkg_summary;
pub use init::Init;