File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,6 @@ travis-ci = { repository = "rust-lang/measureme" }
15
15
[dependencies ]
16
16
byteorder = " 1.2.7"
17
17
rustc-hash = " 1.0.1"
18
+
19
+ [target .'cfg(not(target_arch="wasm32"))' .dependencies ]
18
20
memmap = " 0.6.0"
Original file line number Diff line number Diff line change 1
1
mod event;
2
2
mod file_header;
3
+ #[ cfg( any( not( target_arch="wasm32" ) , target_os="wasi" ) ) ]
3
4
mod file_serialization_sink;
5
+ #[ cfg( not( target_arch="wasm32" ) ) ]
4
6
mod mmap_serialization_sink;
5
7
mod profiler;
6
8
mod profiling_data;
@@ -12,7 +14,9 @@ pub mod rustc;
12
14
pub mod testing_common;
13
15
14
16
pub use crate :: event:: Event ;
17
+ #[ cfg( any( not( target_arch="wasm32" ) , target_os="wasi" ) ) ]
15
18
pub use crate :: file_serialization_sink:: FileSerializationSink ;
19
+ #[ cfg( not( target_arch="wasm32" ) ) ]
16
20
pub use crate :: mmap_serialization_sink:: MmapSerializationSink ;
17
21
pub use crate :: profiler:: { Profiler , ProfilerFiles } ;
18
22
pub use crate :: profiling_data:: { ProfilingData , MatchingEvent } ;
You can’t perform that action at this time.
0 commit comments