const _: () = {
#[doc(hidden)]
#[export_name = "render"]
#[allow(non_snake_case)]
unsafe extern "C" fn __export_render(arg0: i32,arg1: i32,) -> i32 {
#[allow(unused_imports)]
use wit_bindgen::rt::{alloc, vec::Vec, string::String};
#[cfg(target_arch="wasm32")]
wit_bindgen::rt::run_ctors_once();
let len0 = arg1 as usize;
let bytes0 = Vec::from_raw_parts(arg0 as *mut _, len0, len0);
let result1 = <_GuestImpl as Guest>::render(wit_bindgen::rt::string_lift(bytes0));
let ptr2 = _RET_AREA.0.as_mut_ptr() as i32;
let vec3 = (result1.into_bytes()).into_boxed_slice();
let ptr3 = vec3.as_ptr() as i32;
let len3 = vec3.len() as i32;
::core::mem::forget(vec3);
*((ptr2 + 4) as *mut i32) = len3;
*((ptr2 + 0) as *mut i32) = ptr3;
ptr2
}
const _: () = {
#[doc(hidden)]
#[export_name = "cabi_post_render"]
#[allow(non_snake_case)]
unsafe extern "C" fn __post_return_render(arg0: i32,) {
let l0 = *((arg0 + 0) as *const i32);
let l1 = *((arg0 + 4) as *const i32);
wit_bindgen::rt::dealloc(l0, (l1) as usize, 1);
}
};
};
const _: () = {
#[doc(hidden)]
#[export_name = "render-html"]
#[allow(non_snake_case)]
unsafe extern "C" fn __export_render_html(arg0: i32,arg1: i32,) -> i32 {
#[allow(unused_imports)]
use wit_bindgen::rt::{alloc, vec::Vec, string::String};
#[cfg(target_arch="wasm32")]
wit_bindgen::rt::run_ctors_once();
let len0 = arg1 as usize;
let bytes0 = Vec::from_raw_parts(arg0 as *mut _, len0, len0);
let result1 = <_GuestImpl as Guest>::render_html(wit_bindgen::rt::string_lift(bytes0));
let ptr2 = _RET_AREA.0.as_mut_ptr() as i32;
let vec3 = (result1.into_bytes()).into_boxed_slice();
let ptr3 = vec3.as_ptr() as i32;
let len3 = vec3.len() as i32;
::core::mem::forget(vec3);
*((ptr2 + 4) as *mut i32) = len3;
*((ptr2 + 0) as *mut i32) = ptr3;
ptr2
}
const _: () = {
#[doc(hidden)]
#[export_name = "cabi_post_render-html"]
#[allow(non_snake_case)]
unsafe extern "C" fn __post_return_render_html(arg0: i32,) {
let l0 = *((arg0 + 0) as *const i32);
let l1 = *((arg0 + 4) as *const i32);
wit_bindgen::rt::dealloc(l0, (l1) as usize, 1);
}
};
};
const _: () = {
#[doc(hidden)]
#[export_name = "describe"]
#[allow(non_snake_case)]
unsafe extern "C" fn __export_describe(arg0: i32,arg1: i32,) -> i32 {
#[allow(unused_imports)]
use wit_bindgen::rt::{alloc, vec::Vec, string::String};
#[cfg(target_arch="wasm32")]
wit_bindgen::rt::run_ctors_once();
let len0 = arg1 as usize;
let bytes0 = Vec::from_raw_parts(arg0 as *mut _, len0, len0);
let result1 = <_GuestImpl as Guest>::describe(wit_bindgen::rt::string_lift(bytes0));
let ptr2 = _RET_AREA.0.as_mut_ptr() as i32;
let vec3 = (result1.into_bytes()).into_boxed_slice();
let ptr3 = vec3.as_ptr() as i32;
let len3 = vec3.len() as i32;
::core::mem::forget(vec3);
*((ptr2 + 4) as *mut i32) = len3;
*((ptr2 + 0) as *mut i32) = ptr3;
ptr2
}
const _: () = {
#[doc(hidden)]
#[export_name = "cabi_post_describe"]
#[allow(non_snake_case)]
unsafe extern "C" fn __post_return_describe(arg0: i32,) {
let l0 = *((arg0 + 0) as *const i32);
let l1 = *((arg0 + 4) as *const i32);
wit_bindgen::rt::dealloc(l0, (l1) as usize, 1);
}
};
};
use super::Component as _GuestImpl;
pub trait Guest {
fn render(payload: wit_bindgen::rt::string::String,) -> wit_bindgen::rt::string::String;
fn render_html(payload: wit_bindgen::rt::string::String,) -> wit_bindgen::rt::string::String;
fn describe(req: wit_bindgen::rt::string::String,) -> wit_bindgen::rt::string::String;
}
#[allow(unused_imports)]
use wit_bindgen::rt::{alloc, vec::Vec, string::String};
#[repr(align(4))]
struct _RetArea([u8; 8]);
static mut _RET_AREA: _RetArea = _RetArea([0; 8]);
#[cfg(target_arch = "wasm32")]
#[link_section = "component-type:root"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 225] = [0, 97, 115, 109, 13, 0, 1, 0, 0, 25, 22, 119, 105, 116, 45, 99, 111, 109, 112, 111, 110, 101, 110, 116, 45, 101, 110, 99, 111, 100, 105, 110, 103, 4, 0, 7, 104, 1, 65, 2, 1, 65, 5, 1, 64, 1, 7, 112, 97, 121, 108, 111, 97, 100, 115, 0, 115, 4, 0, 6, 114, 101, 110, 100, 101, 114, 1, 0, 4, 0, 11, 114, 101, 110, 100, 101, 114, 45, 104, 116, 109, 108, 1, 0, 1, 64, 1, 3, 114, 101, 113, 115, 0, 115, 4, 0, 8, 100, 101, 115, 99, 114, 105, 98, 101, 1, 1, 4, 1, 29, 99, 111, 109, 112, 111, 110, 101, 110, 116, 58, 119, 97, 115, 109, 45, 99, 111, 109, 112, 111, 110, 101, 110, 116, 47, 114, 111, 111, 116, 4, 0, 11, 10, 1, 0, 4, 114, 111, 111, 116, 3, 0, 0, 0, 70, 9, 112, 114, 111, 100, 117, 99, 101, 114, 115, 1, 12, 112, 114, 111, 99, 101, 115, 115, 101, 100, 45, 98, 121, 2, 13, 119, 105, 116, 45, 99, 111, 109, 112, 111, 110, 101, 110, 116, 6, 48, 46, 50, 49, 46, 48, 16, 119, 105, 116, 45, 98, 105, 110, 100, 103, 101, 110, 45, 114, 117, 115, 116, 6, 48, 46, 49, 56, 46, 48];
#[inline(never)]
#[doc(hidden)]
#[cfg(target_arch = "wasm32")]
pub fn __link_section() {}