# rust-libteec
#### 介绍
基于 GlobalPlatform TEE Client API 规范的 TEE (Trusted Execution Environment) 客户端库的 Rust 实现。该库提供与可信执行环境中的可信应用 (TA) 通信的接口。
#### 软件架构
项目包含以下组件:
- **cc_teec**:主要的 Rust 库,提供高层 TEE 客户端 API
- **optee-teec-sys**:OP-TEE TEE Client API 的底层绑定
- **examples**:演示与 KYBOX 和 DICE TA 使用的 Rust 示例
- **c-examples**:C 语言示例代码作为参考
- **tests**:单元测试和集成测试
#### 安装教程
1. 确保安装了 Rust(推荐版本 1.70 或更高)
2. 克隆仓库:`git clone https://gitee.com/kylinx/rust-libteec.git`
3. 构建库:`cargo build --release`
#### 使用说明
1. **构建库**:
```bash
make build
```
2. **运行示例**:
```bash
cargo run --release --example cc-teec
cargo run --release --example cc-teec -- dice
```
3. **运行测试**:
```bash
make test
```
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)