1- // Generated by `wit-bindgen` 0.36 .0. DO NOT EDIT!
1+ // Generated by `wit-bindgen` 0.41 .0. DO NOT EDIT!
22// Options used:
33// * runtime_path: "wit_bindgen_rt"
44#[ rustfmt:: skip]
55#[ allow( dead_code, clippy:: all) ]
66pub mod exports {
77 pub mod docs {
88 pub mod adder {
9- #[ allow( dead_code, clippy:: all) ]
9+ #[ allow( dead_code, async_fn_in_trait , unused_imports , clippy:: all) ]
1010 pub mod add {
1111 #[ used]
1212 #[ doc( hidden) ]
@@ -25,9 +25,10 @@ pub mod exports {
2525 #[ doc( hidden) ]
2626 macro_rules! __export_docs_adder_add_0_1_0_cabi {
2727 ( $ty: ident with_types_in $( $path_to_types: tt) * ) => {
28- const _
: ( ) =
{ #
[ export_name =
"docs:adder/[email protected] #add" ] 29- unsafe extern "C" fn export_add( arg0 : i32 , arg1 : i32 , ) -> i32 {
30- $( $path_to_types) * :: _export_add_cabi:: <$ty > ( arg0, arg1) } } ;
28+ const _ : ( ) = { #[ unsafe ( export_name =
29+ "docs:adder/[email protected] #add" ) ] unsafe extern
"C" fn export_add
( arg0
30+ : i32 , arg1 : i32 , ) -> i32 { unsafe { $( $path_to_types) * ::
31+ _export_add_cabi:: <$ty > ( arg0, arg1) } } } ;
3132 } ;
3233 }
3334 #[ doc( hidden) ]
@@ -38,6 +39,7 @@ pub mod exports {
3839}
3940#[ rustfmt:: skip]
4041mod _rt {
42+ #![ allow( dead_code, clippy:: all) ]
4143 #[ cfg( target_arch = "wasm32" ) ]
4244 pub fn run_ctors_once ( ) {
4345 wit_bindgen_rt:: run_ctors_once ( ) ;
@@ -102,8 +104,8 @@ mod _rt {
102104 }
103105 }
104106}
105- /// Generates `#[no_mangle]` functions to export the specified type as the
106- /// root implementation of all generated traits.
107+ /// Generates `#[unsafe( no_mangle) ]` functions to export the specified type as
108+ /// the root implementation of all generated traits.
107109///
108110/// For more information see the documentation of `wit_bindgen::generate!`.
109111///
@@ -133,14 +135,17 @@ macro_rules! __export_adder_impl {
133135#[ doc( inline) ]
134136pub ( crate ) use __export_adder_impl as export;
135137#[ cfg( target_arch = "wasm32" ) ]
136- #[ link_section = "component-type:wit-bindgen:0.36.0:docs:[email protected] :adder:encoded world" ] 138+ #[ unsafe(
139+ link_section = "component-type:wit-bindgen:0.41.0:docs:[email protected] :adder:encoded world" 140+ ) ]
137141#[ doc( hidden) ]
142+ #[ allow( clippy:: octal_escapes) ]
138143pub static __WIT_BINDGEN_COMPONENT_TYPE: [ u8 ; 203 ] = * b"\
139144\0 asm\x0d \0 \x01 \0 \0 \x19 \x16 wit-component-encoding\x04 \0 \x07 P\x01 A\x02 \x01 A\x02 \x01 \
140- B\x02 \x01 @\x02 \x01 ay \x01 by \0 y\x04 \0 \x03 add\x01 \0 \x04 \0 \x14 docs:adder/[email protected] \x05 \ 145+ B\x02 \x01 @\x02 \x01 xy \x01 yy \0 y\x04 \0 \x03 add\x01 \0 \x04 \0 \x14 docs:adder/[email protected] \x05 \ 141146\0 \x04 \0 \x16 docs:adder/[email protected] \x04 \0 \x0b \x0b \x01 \0 \x05 adder\x03 \0 \0 \0 G\x09 pr\ 142- oducers\x01 \x0c processed-by\x02 \x0d wit-component\x07 0.220.0 \x10 wit-bindgen-rust\x06 \
143- 0.36 .0";
147+ oducers\x01 \x0c processed-by\x02 \x0d wit-component\x07 0.227.1 \x10 wit-bindgen-rust\x06 \
148+ 0.41 .0";
144149#[ inline( never) ]
145150#[ doc( hidden) ]
146151pub fn __link_custom_section_describing_imports ( ) {
0 commit comments