//! # The Trusty Rust Standard Library //! //! Rust for Trusty requires `no_std`, as the Rust standard library has not been //! (and will likely never be) ported to Trusty. This crate provides a subset of //! the standard library types and other generally useful APIs for building //! trusted apps. //! //! This library is designed to accommodate fallible memory allocation and //! provides types which may only be allocated fallibly. When the necessary APIs //! are available [upstream](https://github.com/rust-lang/rust/issues/86942) or //! in this crate, we plan to enable `no_global_oom_handling`, so do not write //! code using this crate that relies on infallible allocation.
#![no_std] #![allow(internal_features)] #![feature(allocator_api)] #![feature(alloc_error_handler)] #![feature(alloc_layout_extra)] #![feature(cfg_version)] #![feature(core_intrinsics)] // min_specialization is only used to optimize CString::try_new(), so we can // remove it if needed #![feature(min_specialization)] #![cfg_attr(not(version("1.82")), feature(new_uninit))] #![cfg_attr(not(version("1.81")), feature(panic_info_message))] #![feature(slice_internals)] #![feature(slice_ptr_get)]
// Import alloc with a different name to not clash with our local module externcrate alloc as alloc_crate;
pubmod alloc; mod clone_ext; pubmod ffi;
pubuse clone_ext::TryClone;
// Re-exports from core and alloc pubuse alloc_crate::{borrow, boxed, fmt, format, rc, slice, str, string, vec};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.