Add a fii feature so that we don't compile in the ffi code if not required

This commit is contained in:
Olivier Goffart 2021-03-16 18:09:57 +01:00
parent 287670c140
commit 35cce45cbc
18 changed files with 43 additions and 38 deletions

View file

@ -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::*;