The Rust SGX SDK Standard Library
The Rust SGX standard library (previously named as sgx_tstdc
) is
the foundation of portable Rust SGX SDK, a
set of minimal and battle-tested shared abstractions for the Rust SGX
ecosystem. Similar to Rust's libstd, it offers core types, like [Vec<T>
] and
[Option<T>
], library-defined operations on language
primitives, standard macros, [I/O] and
[multithreading], among [many other things][other].
std
is available to all Rust crates by default, just as if each one
contained an extern crate sgx_tstd as std;
import at the [crate root]. Therefore the
standard library can be accessed in [use
] statements through the path
std
, as in [use std::env
], or in expressions through the absolute path
::std
, as in [::std::env::args
].