Skip to main content

axcbpf/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![forbid(unsafe_code)]
4#![deny(missing_docs)]
5
6extern crate alloc;
7
8mod instruction;
9mod program;
10mod translate;
11mod translation_validate;
12
13pub use instruction::{Instruction, opcode};
14pub use program::{Input, LoadWidth, MAX_INSTRUCTIONS, Program, SCRATCH_WORDS, VerifyError};
15pub use translate::{
16    CodeImage, ExternalCall, ImageValidationError, InputProfile, InstructionMap,
17    MAX_CODE_IMAGE_BYTES, NativeWordInput, Relocation, RelocationKind, TranslationError,
18};
19pub use translation_validate::validate_translation_bytes;