optee_teec/lib.rs
1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements. See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership. The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License. You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied. See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18#![cfg_attr(doc, doc = concat!(
19 env!("CARGO_PKG_DESCRIPTION"),
20 "\n",
21 "## Feature flags\n",
22 document_features::document_features!(),
23))]
24
25pub use self::context::Context;
26pub use self::error::{Error, ErrorKind, ErrorOrigin, Result};
27pub use self::extension::*;
28pub use self::operation::Operation;
29pub use self::parameter::{Param, ParamNone, ParamTmpRef, ParamType, ParamTypes, ParamValue};
30pub use self::session::{ConnectionMethods, Session};
31pub use self::uuid::Uuid;
32// Re-export optee_teec_sys so developers don't have to add it to their cargo
33// dependencies.
34pub use optee_teec_sys as raw;
35
36// Re-export optee_teec_macros so developers don't have to add it as a separate
37// cargo dependency.
38// Gate it behind a feature flag to avoid unnecessary build-time overhead when
39// it’s not needed (see #283).
40#[cfg(feature = "macros")]
41pub use optee_teec_macros as macros;
42
43mod context;
44mod error;
45mod extension;
46mod operation;
47mod parameter;
48mod session;
49mod uuid;