Skip to main content

wasm_pvm/
lib.rs

1#![allow(
2    clippy::too_many_lines, // TODO: Remove after refactoring lowering.rs (Task #30)
3    clippy::missing_errors_doc // TODO: Add docs in V2 (Task #34/Documentation)
4)]
5
6pub mod abi;
7pub mod error;
8pub mod llvm_backend;
9pub mod llvm_frontend;
10pub mod pvm;
11pub mod spi;
12pub mod translate;
13
14/// Test harness module for writing unit and integration tests.
15///
16/// This module is only available when running tests or when the
17/// `test-harness` feature is enabled.
18#[cfg(any(test, feature = "test-harness"))]
19pub mod test_harness;
20
21pub use error::{Error, Result};
22pub use pvm::{Instruction, Opcode, ProgramBlob};
23pub use spi::SpiProgram;
24pub use translate::{
25    CompileOptions, ImportAction, OptimizationFlags, compile, compile_with_options,
26};