File tree Expand file tree Collapse file tree 6 files changed +7
-1
lines changed Expand file tree Collapse file tree 6 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ pub struct Config {
161
161
pub ( crate ) memory_guaranteed_dense_image_size : u64 ,
162
162
pub ( crate ) force_memory_init_memfd : bool ,
163
163
pub ( crate ) wmemcheck : bool ,
164
+ #[ cfg( feature = "coredump" ) ]
164
165
pub ( crate ) coredump_on_trap : bool ,
165
166
pub ( crate ) macos_use_mach_ports : bool ,
166
167
pub ( crate ) detect_host_feature : Option < fn ( & str ) -> Option < bool > > ,
@@ -265,6 +266,7 @@ impl Config {
265
266
memory_guaranteed_dense_image_size : 16 << 20 ,
266
267
force_memory_init_memfd : false ,
267
268
wmemcheck : false ,
269
+ #[ cfg( feature = "coredump" ) ]
268
270
coredump_on_trap : false ,
269
271
macos_use_mach_ports : !cfg ! ( miri) ,
270
272
#[ cfg( feature = "std" ) ]
Original file line number Diff line number Diff line change 292
292
not( feature = "gc-null" ) ,
293
293
not( feature = "cranelift" ) ,
294
294
not( feature = "pooling-allocator" ) ,
295
- not( feature = "coredump" ) ,
296
295
not( feature = "runtime" ) ,
297
296
not( feature = "component-model" ) ,
298
297
not( feature = "threads" ) ,
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ impl Global {
264
264
/// Even if the same underlying global definition is added to the
265
265
/// `StoreData` multiple times and becomes multiple `wasmtime::Global`s,
266
266
/// this hash key will be consistent across all of these globals.
267
+ #[ cfg( feature = "coredump" ) ]
267
268
pub ( crate ) fn hash_key ( & self , store : & StoreOpaque ) -> impl core:: hash:: Hash + Eq + use < > {
268
269
store[ self . 0 ] . definition . as_ptr ( ) as usize
269
270
}
Original file line number Diff line number Diff line change @@ -605,6 +605,7 @@ impl Instance {
605
605
/// Returns both exported and non-exported globals.
606
606
///
607
607
/// Gives access to the full globals space.
608
+ #[ cfg( feature = "coredump" ) ]
608
609
pub ( crate ) fn all_globals < ' a > (
609
610
& ' a self ,
610
611
store : & ' a mut StoreOpaque ,
@@ -625,6 +626,7 @@ impl Instance {
625
626
/// Returns both exported and non-exported memories.
626
627
///
627
628
/// Gives access to the full memories space.
629
+ #[ cfg( feature = "coredump" ) ]
628
630
pub ( crate ) fn all_memories < ' a > (
629
631
& ' a self ,
630
632
store : & ' a mut StoreOpaque ,
Original file line number Diff line number Diff line change @@ -659,6 +659,7 @@ impl Memory {
659
659
/// Even if the same underlying memory definition is added to the
660
660
/// `StoreData` multiple times and becomes multiple `wasmtime::Memory`s,
661
661
/// this hash key will be consistent across all of these memories.
662
+ #[ cfg( feature = "coredump" ) ]
662
663
pub ( crate ) fn hash_key ( & self , store : & StoreOpaque ) -> impl core:: hash:: Hash + Eq + use < > {
663
664
store[ self . 0 ] . definition . as_ptr ( ) as usize
664
665
}
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ impl ModuleRegistry {
85
85
}
86
86
87
87
/// Gets an iterator over all modules in the registry.
88
+ #[ cfg( feature = "coredump" ) ]
88
89
pub fn all_modules ( & self ) -> impl Iterator < Item = & ' _ Module > + ' _ {
89
90
self . loaded_code
90
91
. values ( )
You can’t perform that action at this time.
0 commit comments