Skip to main content

hyperlane_performance/
lib.rs

1//! hyperlane-performance
2//!
3//! The Rust orchestrator, certificate generator and reporter for the hyperlane benchmark harness.
4mod certificate;
5mod config;
6mod context;
7mod report;
8mod runner;
9#[cfg(test)]
10#[path = "../tests/mod.rs"]
11mod tests;
12
13pub use {certificate::generate_certificates, report::render_report, runner::run};
14
15pub(crate) use {config::*, context::*};
16
17use std::{
18    collections::BTreeMap,
19    env, fs,
20    fs::{File, OpenOptions},
21    io::{self, ErrorKind, Write},
22    mem::swap,
23    path::{Path, PathBuf},
24    process::{Child, Command, ExitStatus, Output, Stdio, id},
25    thread::sleep,
26    time::{Duration, SystemTime, UNIX_EPOCH},
27};
28
29#[cfg(unix)]
30use std::os::unix::fs::PermissionsExt;
31
32use {
33    serde::Deserialize,
34    serde_json::{from_str, to_string},
35    toml_edit::{Array, DocumentMut, Item, Table, Value},
36};