1
1
// Generated by `wit-bindgen` 0.24.0. DO NOT EDIT!
2
2
// Options used:
3
3
#[ allow( dead_code) ]
4
- pub mod docs {
4
+ pub mod component_book {
5
5
#[ allow( dead_code) ]
6
- pub mod calculator {
6
+ pub mod adder {
7
7
#[ allow( dead_code, clippy:: all) ]
8
8
pub mod add {
9
9
#[ used]
@@ -16,7 +16,7 @@ pub mod docs {
16
16
pub fn add ( a : u32 , b : u32 ) -> u32 {
17
17
unsafe {
18
18
#[ cfg( target_arch = "wasm32" ) ]
19
- #[ link( wasm_import_module = "bytecode_alliance:calculator /[email protected] " ) ]
19
+ #[ link( wasm_import_module = "component-book:adder /[email protected] " ) ]
20
20
extern "C" {
21
21
#[ link_name = "add" ]
22
22
fn wit_import ( _: i32 , _: i32 ) -> i32 ;
@@ -36,7 +36,7 @@ pub mod docs {
36
36
#[ allow( dead_code) ]
37
37
pub mod exports {
38
38
#[ allow( dead_code) ]
39
- pub mod docs {
39
+ pub mod component_book {
40
40
#[ allow( dead_code) ]
41
41
pub mod calculator {
42
42
#[ allow( dead_code, clippy:: all) ]
@@ -92,17 +92,17 @@ pub mod exports {
92
92
}
93
93
#[ doc( hidden) ]
94
94
95
- macro_rules! __export_docs_calculator_calculate_0_1_0_cabi {
95
+ macro_rules! __export_component_book_calculator_calculate_0_1_0_cabi {
96
96
( $ty: ident with_types_in $( $path_to_types: tt) * ) => ( const _: ( ) = {
97
97
98
- #
[ export_name =
"bytecode_alliance :calculator/[email protected] #eval-expression" ]
98
+ #
[ export_name =
"component-book :calculator/[email protected] #eval-expression" ]
99
99
unsafe extern "C" fn export_eval_expression( arg0: i32 , arg1: i32 , arg2: i32 , ) -> i32 {
100
100
$( $path_to_types) * :: _export_eval_expression_cabi:: <$ty>( arg0, arg1, arg2)
101
101
}
102
102
} ; ) ;
103
103
}
104
104
#[ doc( hidden) ]
105
- pub ( crate ) use __export_docs_calculator_calculate_0_1_0_cabi ;
105
+ pub ( crate ) use __export_component_book_calculator_calculate_0_1_0_cabi ;
106
106
}
107
107
}
108
108
}
@@ -207,7 +207,7 @@ mod _rt {
207
207
macro_rules! __export_calculator_impl {
208
208
( $ty: ident) => ( self :: export!( $ty with_types_in self ) ; ) ;
209
209
( $ty: ident with_types_in $( $path_to_types_root: tt) * ) => (
210
- $( $path_to_types_root) * :: exports:: bytecode_alliance :: calculator:: calculate:: __export_docs_calculator_calculate_0_1_0_cabi !( $ty with_types_in $( $path_to_types_root) * :: exports:: bytecode_alliance :: calculator:: calculate) ;
210
+ $( $path_to_types_root) * :: exports:: component_book :: calculator:: calculate:: __export_component_book_calculator_calculate_0_1_0_cabi !( $ty with_types_in $( $path_to_types_root) * :: exports:: component_book :: calculator:: calculate) ;
211
211
)
212
212
}
213
213
#[ doc( inline) ]
@@ -216,14 +216,14 @@ pub(crate) use __export_calculator_impl as export;
216
216
#[ cfg( target_arch = "wasm32" ) ]
217
217
#[ link_section = "component-type:wit-bindgen:0.24.0:calculator:encoded world" ]
218
218
#[ doc( hidden) ]
219
- pub static __WIT_BINDGEN_COMPONENT_TYPE: [ u8 ; 313 ] = * b"\
220
- \0 asm\x0d \0 \x01 \0 \0 \x19 \x16 wit-component-encoding\x04 \0 \x07 \xb8 \x01 \x01 A\x02 \x01 \
221
- A\x04 \x01 B\x02 \x01 @\x02 \x01 ay\x01 by\0 y\x04 \0 \x03 add\x01 \0 \x03 \x01 \x19 bytecode_alliance:calcul \
222
- ator /[email protected] \x05 \0 \x01 B\x04 \x01 m\x01 \x03 add\x04 \0 \x02 op\x03 \0 \0 \x01 @\x03 \x02 op \
223
- \x01 \x01 xy\x01 yy\0 y\x04 \0 \x0f eval-expression\x01 \x02 \x04 \x01 \x1f bytecode_alliance:calculator/ \
224
- [email protected] \x05 \x01 \x04 \x01 \x20 bytecode_alliance :calculator/calculator@0.1.0 \x04 \0 \x0b \x10 \
225
- \ x01\0 \x0a calculator\x03 \0 \0 \0 G\x09 producers\x01 \x0c processed-by \x02 \x0d wit-comp \
226
- onent \x07 0.202.0\x10 wit-bindgen-rust\x06 0.24.0";
219
+ pub static __WIT_BINDGEN_COMPONENT_TYPE: [ u8 ; 338 ] = * b"\
220
+ \0 asm\x0d \0 \x01 \0 \0 \x19 \x16 wit-component-encoding\x04 \0 \x07 \xd1 \x01 \x01 A\x02 \x01 \
221
+ A\x04 \x01 B\x02 \x01 @\x02 \x01 ay\x01 by\0 y\x04 \0 \x03 add\x01 \0 \x03 \x01 \x1e component-b \
222
+ ook:adder /[email protected] \x05 \0 \x01 B\x04 \x01 m\x01 \x03 add\x04 \0 \x02 op\x03 \0 \0 \x01 @\x03 \x02 \
223
+ op \x01 \x01 xy\x01 yy\0 y\x04 \0 \x0f eval-expression\x01 \x02 \x04 \x01 )component-book:ca \
224
+ lculator/ [email protected] \x05 \x01 \x04 \x01 *component-book :calculator/calculator@0.\
225
+ 1.0 \x04 \0 \x0b \x10 \ x01\0 \x0a calculator\x03 \0 \0 \0 G\x09 producers\x01 \x0c processed-b \
226
+ y \x02 \x0d wit-component \x07 0.202.0\x10 wit-bindgen-rust\x06 0.24.0";
227
227
228
228
#[ inline( never) ]
229
229
#[ doc( hidden) ]
0 commit comments