Skip to main content

basisu_c_sys/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg), doc(auto_cfg = false))]
3#![cfg_attr(
4    all(
5        not(all(
6            target_arch = "wasm32",
7            target_vendor = "unknown",
8            target_os = "unknown",
9        )),
10        not(test)
11    ),
12    no_std
13)]
14extern crate alloc;
15
16#[cfg(feature = "extra")]
17#[cfg_attr(docsrs, doc(cfg(feature = "extra")))]
18pub mod extra;
19
20pub mod common {
21    include!(concat!(env!("OUT_DIR"), "/basisu_api_common.rs"));
22}
23
24#[cfg(all(
25    target_arch = "wasm32",
26    target_vendor = "unknown",
27    target_os = "unknown",
28))]
29mod web;
30#[cfg(all(
31    target_arch = "wasm32",
32    target_vendor = "unknown",
33    target_os = "unknown",
34))]
35pub use web::*;
36
37#[cfg(not(all(
38    target_arch = "wasm32",
39    target_vendor = "unknown",
40    target_os = "unknown",
41)))]
42mod native;
43#[cfg(not(all(
44    target_arch = "wasm32",
45    target_vendor = "unknown",
46    target_os = "unknown",
47)))]
48pub use native::*;
49
50mod utils;
51pub use utils::*;