Registry / crypto / sgx-libc

sgx-libc

JSON →
library1.1.1rscratesunverified

Provides libc bindings for Intel SGX enclaves, enabling Rust applications to run within secure enclaves.

# Cargo.toml [dependencies] sgx_libc = "1.1.1"
INSTALL
IMPORT
SIG · SGX-LIBC
S
sgx-libc
cryptorustv1.1.1
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.

c_char
use sgx_libc::c_char;

Uses libc types and functions inside an SGX enclave.

use sgx_libc::c_char; fn main() { let s: *const c_char = b"hello\0" as *const _ as *const c_char; unsafe { sgx_libc::printf(s); } }
Debug
Known issues
gotchaRequires Intel SGX hardware and SDK setup
fix
Install Intel SGX SDK and enable 'sgx' feature flag
affects: >=1.0.0
Upgrade
Version history
1.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
sgx-libc — cargo add sgx-libc · libregistry