Skip to content

Commit 6ecc19b

Browse files
committed
re-include target env wasi
1 parent ade26ba commit 6ecc19b

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

lz4-sys/src/lib.rs

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
11
#![no_std]
22
extern crate libc;
33

4-
#[cfg(not(all(target_arch = "wasm32", not(any(target_os = "wasi")))))]
4+
#[cfg(not(all(
5+
target_arch = "wasm32",
6+
not(any(target_env = "wasi", target_os = "wasi"))
7+
)))]
58
pub use libc::{c_char, c_int, c_uint, c_ulonglong, c_void, size_t};
69

7-
#[cfg(all(target_arch = "wasm32", not(any(target_os = "wasi"))))]
10+
#[cfg(all(
11+
target_arch = "wasm32",
12+
not(any(target_env = "wasi", target_os = "wasi"))
13+
))]
814
extern crate alloc;
915

10-
#[cfg(all(target_arch = "wasm32", not(any(target_os = "wasi"))))]
16+
#[cfg(all(
17+
target_arch = "wasm32",
18+
not(any(target_env = "wasi", target_os = "wasi"))
19+
))]
1120
mod wasm_shim;
1221

13-
#[cfg(all(target_arch = "wasm32", not(any(target_os = "wasi"))))]
22+
#[cfg(all(
23+
target_arch = "wasm32",
24+
not(any(target_env = "wasi", target_os = "wasi"))
25+
))]
1426
extern crate std;
1527

16-
#[cfg(all(target_arch = "wasm32", not(any(target_os = "wasi"))))]
28+
#[cfg(all(
29+
target_arch = "wasm32",
30+
not(any(target_env = "wasi", target_os = "wasi"))
31+
))]
1732
pub use std::os::raw::{c_char, c_int, c_uint, c_ulonglong, c_void};
1833

19-
#[cfg(all(target_arch = "wasm32", not(any(target_os = "wasi"))))]
34+
#[cfg(all(
35+
target_arch = "wasm32",
36+
not(any(target_env = "wasi", target_os = "wasi"))
37+
))]
2038
#[allow(non_camel_case_types)]
2139
pub type size_t = usize;
2240

0 commit comments

Comments
 (0)