# rust-libteec
#### Description
A Rust implementation of the TEE (Trusted Execution Environment) client library, based on the GlobalPlatform TEE Client API specification. This library provides interfaces for communicating with Trusted Applications (TAs) in a TEE.
#### Software Architecture
The project consists of:
- **cc_teec**: Main Rust library providing high-level TEE client APIs
- **optee-teec-sys**: Low-level bindings to OP-TEE TEE Client API
- **examples**: Rust examples demonstrating usage with KYBOX and DICE TAs
- **c-examples**: C language examples for reference
- **tests**: Unit tests and integration tests
#### Installation
1. Ensure Rust is installed (version 1.70 or later recommended)
2. Clone the repository: `git clone https://gitee.com/kylinx/rust-libteec.git`
3. Build the library: `cargo build --release`
#### Instructions
1. **Building the library**:
```bash
make build
```
2. **Running examples**:
```bash
cargo run --release --example cc-teec
cargo run --release --example cc-teec -- dice
```
3. **Running tests**:
```bash
make test
```
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)