Skip to main content

bobcat_host/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3pub mod risc_ecall;
4
5#[cfg(all(target_arch = "riscv32", target_os = "none"))]
6pub mod risc;
7
8#[cfg(all(target_family = "wasm", target_os = "unknown"))]
9pub mod wasm;
10
11#[cfg(all(target_arch = "riscv32", target_os = "none"))]
12pub use risc::*;
13
14#[cfg(all(target_family = "wasm", target_os = "unknown"))]
15pub use wasm::*;
16
17#[cfg(all(
18    not(feature = "std"),
19    not(any(
20        all(target_family = "wasm", target_os = "unknown"),
21        all(target_arch = "riscv32", target_os = "none")
22    ))
23))]
24pub mod sys_nostd;
25
26#[cfg(all(
27    not(feature = "std"),
28    not(any(
29        all(target_family = "wasm", target_os = "unknown"),
30        all(target_arch = "riscv32", target_os = "none")
31    ))
32))]
33pub use sys_nostd::*;
34
35#[cfg(all(
36    feature = "std",
37    not(any(
38        all(target_family = "wasm", target_os = "unknown"),
39        all(target_arch = "riscv32", target_os = "none")
40    ))
41))]
42pub mod sys_std;
43
44#[cfg(all(
45    feature = "std",
46    not(any(
47        all(target_family = "wasm", target_os = "unknown"),
48        all(target_arch = "riscv32", target_os = "none")
49    ))
50))]
51pub use sys_std::*;