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(
8    non_camel_case_types,
9    non_snake_case,
10    ambiguous_glob_reexports
11)]
12
13pub mod api;
14pub mod user_ta_header;
15pub mod syscalls;
16pub mod tee_api_defines;
17pub mod tee_api_types;
18pub mod trace;
19pub mod utee_types;
20#[macro_use]
21mod macros;
22
23// Crate-root re-exports: dependents may use `rust_utee::<symbol>` (see `[lib] name` in Cargo.toml).
24// `api::user_ta_headers` is not glob-reexported: its `TA_PROP_STR_*` / `TA_FLAG_*` names overlap with `user_ta_header`.
25pub use tee_api_defines::*;
26pub use tee_api_types::*;
27pub use trace::*;
28pub use user_ta_header::*;
29pub use utee_types::*;
30
31pub use api::tee_api_arith_mpi::*;
32pub use api::tee_api_cancel::*;
33pub use api::tee_api_internal_client::*;
34pub use api::tee_api_mm::*;
35pub use api::tee_api_objects::*;
36pub use api::tee_api_operations::*;
37pub use api::tee_api_panic::*;
38pub use api::tee_api_property::*;
39pub use api::tee_api_time::*;
40
41pub use syscalls::syscall_table::*;
42
43mod libc_compat {
44    pub type size_t = usize;
45    #[allow(dead_code)]
46    pub type intmax_t = i64;
47}