polkavm_common/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![deny(unsafe_code)]
4#![forbid(unused_must_use)]
5#![allow(clippy::get_first)]
6
7#[cfg(feature = "alloc")]
8extern crate alloc;
9
10#[cfg(feature = "std")]
11extern crate std;
12
13#[macro_export]
14macro_rules! static_assert {
15    ($condition:expr) => {
16        const _: () = assert!($condition);
17    };
18}
19
20#[cfg(feature = "alloc")]
21pub mod assembler;
22
23pub mod abi;
24#[cfg(feature = "alloc")]
25pub mod elf;
26pub mod operation;
27pub mod program;
28pub mod utils;
29pub mod varint;
30
31#[cfg(feature = "alloc")]
32pub mod writer;
33
34#[cfg(target_arch = "x86_64")]
35pub mod zygote;
36
37#[cfg(feature = "regmap")]
38pub mod regmap;
39
40pub mod hasher;
41
42#[cfg(not(feature = "blake3"))]
43mod blake3;
44
45pub mod cast;