Remove extern "C" functions from wasm module

We don't need these functions and their export. They account for ~20kb in
the optimized .wasm - plus JS glue code.
This commit is contained in:
Simon Hausmann 2021-02-26 17:04:49 +01:00
parent 3d7eb6ac70
commit f087cc18bc
16 changed files with 18 additions and 1 deletions

View file

@ -74,6 +74,7 @@ pub use graphics::PathData;
/// This only use functions from modules which are not otherwise used.
#[doc(hidden)]
#[cold]
#[cfg(not(target_arch = "wasm32"))]
pub fn use_modules() -> usize {
tests::sixtyfps_mock_elapsed_time as usize
+ callbacks::ffi::sixtyfps_callback_init as usize