Skip to main content

baedeker_core/
lib.rs

1// Copyright (C) 2026 Industrial Algebra
2// SPDX-License-Identifier: Apache-2.0
3
4//! Baedeker WebAssembly runtime core.
5//!
6//! A `no_std` WebAssembly 2.0 engine providing binary decoding, validation,
7//! lowering, and execution. Designed to embed cleanly into iOS, bare metal,
8//! or even another WASM runtime.
9//!
10//! This crate is language-runtime infrastructure: its binary parsing,
11//! malformed-input handling, validation, and future robustness testing exist
12//! to improve standards compliance, portability, diagnostic quality, and safe
13//! execution behavior. It is not intended for offensive security workflows.
14
15#![cfg_attr(not(feature = "std"), no_std)]
16
17extern crate alloc;
18
19// Unit tests may use std (threads for deep-recursion stack headroom, etc.)
20// even when the crate itself is built no_std.
21#[cfg(all(test, not(feature = "std")))]
22extern crate std;
23
24#[cfg(feature = "aot")]
25pub mod aot;
26pub mod binary;
27pub mod error;
28pub mod lower;
29pub mod runtime;
30pub mod types;
31pub mod validate;