Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

sgx-sdk-rs

Rust SDK for Intel SGX (Software Guard Extensions) - A collection of tools and libraries for building secure enclaves in Rust.

Forked from Apache Teaclave SGX SDK at commit 1b1d033.

Features

  • Rust SGX Libraries: Core libraries for developing SGX enclaves
  • cargo-sgx: A Cargo subcommand that streamlines SGX enclave development by providing:
    • Project initialization with templates (cargo sgx new)
    • Automated enclave building command (cargo sgx build)
    • Seamless integration with the Rust toolchain using custom target x86_64-unknown-unknown-sgx

Getting Started

Install cargo-sgx

cargo install --git https://github.com/datachainlab/sgx-sdk-rs --tag v0.1.0 cargo-sgx

Or install from local directory:

cargo install --path ./cargo-sgx

Create Your First Enclave

cargo sgx new my-enclave
cd my-enclave
cargo sgx build

Project Structure

  • sgx-* - Core SGX libraries (types, ert, trts, tseal, urts, etc.)
  • cargo-sgx/ - Cargo subcommand for SGX development
  • sgx-build/ - Build utilities for SGX enclaves
  • unit-test/ - Unit tests for core SGX libraries
  • samples/hello-rust/ - Basic SGX enclave example

Documentation

Requirements

  • Rust nightly toolchain
  • Intel SGX SDK
  • Intel SGX Driver(only for Hardware Mode)

Acknowledgements

This project is based on the excellent work done by the Apache Teaclave SGX SDK project. We are grateful for their foundational contributions to the Rust SGX ecosystem.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages