Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automata-network/sgxlib
https://github.com/automata-network/sgxlib
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/automata-network/sgxlib
- Owner: automata-network
- License: apache-2.0
- Created: 2023-08-15T11:33:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-21T02:50:07.000Z (11 months ago)
- Last Synced: 2023-12-21T05:28:03.680Z (11 months ago)
- Language: OCaml
- Size: 60.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SGX Library
[![License](https://img.shields.io/badge/license-Apache2-green.svg)](LICENSE)
`sgxlib` leverages the established [incubator-teaclave-sgx-sdk][teaclave] as its underlying SGX SDK, providing a stable and efficient foundation.
## Overview
`sgxlib` is a unified API designed to provide transparent use of `std` and `sgx` code.
This library aims to simplify the integration of [Intel SGX][sgx] with your projects by offering a single interface to both standard and SGX-specific functionality.## Usage
Cargo.toml
```toml
[features]
default = ["std"]std = []
tstd = ["sgxlib/tstd"][dependencies]
sgxlib = { default-features = false }
```src/lib.rs
```rust
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "tstd")]
#[macro_use]
extern crate sgxlib as std;# in every files
use std::prelude::v1::*;
```[sgx]: https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html
[teaclave]: https://github.com/apache/incubator-teaclave-sgx-sdk