mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +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
|
@ -459,7 +459,7 @@ fn invalid_capacity_test() {
|
|||
let _: SharedVector<u8> = SharedVector::with_capacity(usize::MAX / 2 - 1000);
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
#[cfg(feature = "ffi")]
|
||||
pub(crate) mod ffi {
|
||||
use super::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue