Skip to main content

rust_utee/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (C) 2025 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
3// See LICENSES for license details.
4//
5// This file has been modified by KylinSoft on 2025.
6
7#![allow(non_camel_case_types, non_snake_case, ambiguous_glob_reexports)]
8
9pub mod api;
10pub mod syscalls;
11pub mod tee_api_defines;
12pub mod tee_api_types;
13pub mod trace;
14pub mod user_ta_header;
15pub mod utee_types;
16#[macro_use]
17mod macros;
18
19// Crate-root re-exports: dependents may use `rust_utee::<symbol>` (see `[lib] name` in Cargo.toml).
20// `api::user_ta_headers` is not glob-reexported: its `TA_PROP_STR_*` / `TA_FLAG_*` names overlap with `user_ta_header`.
21pub use tee_api_defines::*;
22pub use tee_api_types::*;
23pub use trace::*;
24pub use user_ta_header::*;
25pub use utee_types::*;
26
27pub use api::tee_api_arith_mpi::*;
28pub use api::tee_api_cancel::*;
29pub use api::tee_api_internal_client::*;
30pub use api::tee_api_mm::*;
31pub use api::tee_api_objects::*;
32pub use api::tee_api_operations::*;
33pub use api::tee_api_panic::*;
34pub use api::tee_api_property::*;
35pub use api::tee_api_time::*;
36
37pub use syscalls::syscall_table::*;
38
39mod libc_compat {
40    pub type size_t = usize;
41    #[allow(dead_code)]
42    pub type intmax_t = i64;
43}