mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-05-08 10:08:02 +00:00
17 lines
405 B
Rust
17 lines
405 B
Rust
//! Process for compiling a single compilation unit.
|
|
|
|
pub mod input;
|
|
#[cfg(not(target_os = "emscripten"))]
|
|
pub mod native_process;
|
|
pub mod output;
|
|
#[cfg(target_os = "emscripten")]
|
|
pub mod worker_process;
|
|
|
|
use self::input::Input;
|
|
use self::output::Output;
|
|
|
|
pub trait Process {
|
|
fn run(input_file: Option<&mut std::fs::File>) -> anyhow::Result<()>;
|
|
fn call(input: Input) -> anyhow::Result<Output>;
|
|
}
|