@@ -55,7 +55,7 @@ macro_rules! define_config {
55
55
/// module. The implementation (e.g. function bodies, global
56
56
/// initializers) of each export in the generated module will be
57
57
/// random and unrelated to the implementation in the provided
58
- /// module. Only globals and functions are supported.
58
+ /// module.
59
59
///
60
60
///
61
61
/// Defaults to `None` which means arbitrary exports will be
@@ -73,12 +73,13 @@ macro_rules! define_config {
73
73
///
74
74
/// # Module Limits
75
75
///
76
- /// All types, functions, globals, and exports that are needed to
77
- /// provide the required exports will be generated, even if it
78
- /// causes the resulting module to exceed the limits defined in
79
- /// [`Self::max_type_size`], [`Self::max_types`],
80
- /// [`Self::max_funcs`], [`Self::max_globals`], or
81
- /// [`Self::max_exports`].
76
+ /// All types, functions, globals, memories, tables, tags, and exports
77
+ /// that are needed to provide the required exports will be generated,
78
+ /// even if it causes the resulting module to exceed the limits defined
79
+ /// in [`Self::max_type_size`], [`Self::max_types`],
80
+ /// [`Self::max_funcs`], [`Self::max_globals`],
81
+ /// [`Self::max_memories`], [`Self::max_tables`],
82
+ /// [`Self::max_tags`], or [`Self::max_exports`].
82
83
///
83
84
/// # Example
84
85
///
@@ -90,6 +91,9 @@ macro_rules! define_config {
90
91
/// (module
91
92
/// (func (export "foo") (param i32) (result i64) unreachable)
92
93
/// (global (export "bar") f32 f32.const 0)
94
+ /// (memory (export "baz") 1 10)
95
+ /// (table (export "qux") 5 10 (ref null extern))
96
+ /// (tag (export "quux") (param f32))
93
97
/// )
94
98
/// "#));
95
99
/// ```
@@ -141,7 +145,7 @@ macro_rules! define_config {
141
145
/// module. The implementation (e.g. function bodies, global
142
146
/// initializers) of each export in the generated module will be
143
147
/// random and unrelated to the implementation in the provided
144
- /// module. Only globals and functions are supported.
148
+ /// module.
145
149
///
146
150
/// Defaults to `None` which means arbitrary exports will be
147
151
/// generated.
@@ -158,12 +162,13 @@ macro_rules! define_config {
158
162
///
159
163
/// # Module Limits
160
164
///
161
- /// All types, functions, globals, and exports that are needed to
162
- /// provide the required exports will be generated, even if it
163
- /// causes the resulting module to exceed the limits defined in
164
- /// [`Self::max_type_size`], [`Self::max_types`],
165
- /// [`Self::max_funcs`], [`Self::max_globals`], or
166
- /// [`Self::max_exports`].
165
+ /// All types, functions, globals, memories, tables, tags, and exports
166
+ /// that are needed to provide the required exports will be generated,
167
+ /// even if it causes the resulting module to exceed the limits defined
168
+ /// in [`Self::max_type_size`], [`Self::max_types`],
169
+ /// [`Self::max_funcs`], [`Self::max_globals`],
170
+ /// [`Self::max_memories`], [`Self::max_tables`],
171
+ /// [`Self::max_tags`], or [`Self::max_exports`].
167
172
///
168
173
#[ cfg_attr( feature = "clap" , clap( long) ) ]
169
174
exports: Option <std:: path:: PathBuf >,
0 commit comments