Registry / crypto / sgx-types

sgx-types

JSON →
library1.1.2rscratesunverified

Provides type definitions for Intel SGX enclave development in Rust, including enclave attributes and measurement types.

# Cargo.toml [dependencies] sgx_types = "1.1.2"
INSTALL
IMPORT
SIG · SGX-TYPES
S
sgx-types
cryptorustv1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sgx_enclave_id_t
use sgx_types::sgx_enclave_id_t;

Declare an enclave ID variable

use sgx_types::sgx_enclave_id_t; fn main() { let eid: sgx_enclave_id_t = 0; println!("Enclave ID: {}", eid); }
Debug
Known issues
gotchaRequires Intel SGX SDK and hardware support
fix
Ensure you have Intel SGX enabled CPU and the SGX SDK installed
affects: >=0.0.0
Upgrade
Version history
1.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
sgx-types — cargo add sgx-types · libregistry