protoc_gen_ets/lib.rs
1include!(concat!(env!("OUT_DIR"), "/protogen/mod.rs"));
2
3pub mod collector;
4pub mod common;
5pub mod compile;
6pub mod context;
7pub mod emit;
8pub mod export;
9pub mod options;
10pub mod print;
11pub mod runtime;
12#[macro_use]
13pub mod macros;
14
15#[cfg(feature = "wasm-build")]
16use wasm_bindgen::prelude::*;
17
18#[cfg(feature = "wasm-build")]
19#[wasm_bindgen]
20pub fn run(bytes: Vec<u8>) -> Vec<u8> {
21 console_error_panic_hook::set_once();
22 compile::compile(bytes)
23}