SHA256
Funktioning rewrite, that is able to use gpu on a more variety of
systems
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
//! 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user