Files
3sixty2cubemap/offline_check/main.rs
T

43 lines
1.1 KiB
Rust

//! Offline verification driver — NOT part of the cargo build.
//!
//! Compiles the pure-`std` core modules of the real crate directly with
//! `rustc` (no network, no external deps) and runs the rig self-test, mirroring
//! `python pipeline_360.py rig --self-test`.
//!
//! Build + run:
//! rustc --edition 2021 --crate-name pipeline360 offline_check/main.rs \
//! -o /tmp/pipeline360_selftest && /tmp/pipeline360_selftest
#[path = "../src/error.rs"]
mod error;
#[path = "../src/json.rs"]
mod json;
#[path = "../src/logging.rs"]
mod logging;
#[path = "../src/math.rs"]
mod math;
#[path = "../src/project.rs"]
mod project;
#[path = "../src/stages/rig.rs"]
pub mod rig;
// selftest refers to `crate::stages::rig`; expose the top-level `rig` module under that path.
mod stages {
pub use crate::rig;
}
#[path = "../src/selftest.rs"]
mod selftest;
fn main() {
match selftest::run_selftest() {
Ok(ok) => {
println!("\nself-test: {ok} check groups passed.");
}
Err(e) => {
eprintln!("self-test FAILED: {e}");
std::process::exit(1);
}
}
}