Skip to main content

p47h_wasm_oss/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025 P47H Team <https://p47h.com>
3
4//! # p47h-wasm-oss
5//!
6//! Open Source WASM bindings for p47h governance engine.
7//! This is the public cdylib wrapper around p47h-engine.
8
9#![forbid(unsafe_code)]
10
11use wasm_bindgen::prelude::*;
12
13// Re-export all public APIs from the engine
14pub use p47h_engine::*;
15
16/// Initialize the WASM module (sets panic hook for debugging)
17#[wasm_bindgen(start)]
18pub fn init() {
19    p47h_engine::init_engine();
20}