mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Add a fii feature so that we don't compile in the ffi code if not required
This commit is contained in:
parent
287670c140
commit
35cce45cbc
18 changed files with 43 additions and 38 deletions
|
@ -11,13 +11,13 @@ LICENSE END */
|
|||
|
||||
#[doc(hidden)]
|
||||
#[cold]
|
||||
pub fn use_modules() {
|
||||
pub extern "C" fn use_modules() -> usize {
|
||||
sixtyfps_rendering_backend_default::use_modules();
|
||||
sixtyfps_corelib::use_modules()
|
||||
}
|
||||
|
||||
use sixtyfps_rendering_backend_default::backend;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use sixtyfps_corelib::window::ffi::ComponentWindowOpaque;
|
||||
use sixtyfps_corelib::window::ComponentWindow;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue