Macro hotdrink_wasm::constraint_system_wrapper[][src]

macro_rules! constraint_system_wrapper {
    ($cs_name:ident, $wrapper_type:ty, $inner_type:ty) => { ... };
}

A macro for generating a ConstraintSystem that can be compiled to WebAssembly.

By providing an identifier, wrapper type, inner type (the two last generated with component_type_wrapper!), a thread pool implementation, the number of threads to use, and a termination strategy, it will automatically generate a wrapper that can be returned to and used from JavaScript.