multiplexer_evm/
lib.rs

1// Contract initcode & runtime code
2
3// Use include_bytes! when not building on docs.rs
4#[cfg(not(docsrs))]
5pub const EXECUTOR_INIT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/executor.bin"));
6#[cfg(not(docsrs))]
7pub const DELEGATE_PROXY_INIT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/proxy.bin"));
8#[cfg(not(docsrs))]
9pub const EXECUTOR_RUNTIME: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/executor_runtime.bin"));
10#[cfg(not(docsrs))]
11pub const DELEGATE_PROXY_RUNTIME: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/proxy_runtime.bin"));
12
13// Use empty slices when building on docs.rs
14#[cfg(docsrs)]
15pub const EXECUTOR_INIT: &[u8] = &[];
16#[cfg(docsrs)]
17pub const DELEGATE_PROXY_INIT: &[u8] = &[];
18#[cfg(docsrs)]
19pub const EXECUTOR_RUNTIME: &[u8] = &[];
20#[cfg(docsrs)]
21pub const DELEGATE_PROXY_RUNTIME: &[u8] = &[];
22
23
24pub mod flow_builder;
25pub mod opcodes;
26
27// Re-export Flowbuilder
28pub use flow_builder::FlowBuilder;
29
30#[cfg(test)]
31mod test;