|
1 | | -// https://github.com/rust-lang/rust/issues/32838 |
2 | | -#![cfg_attr(feature = "nightly_allocator_api", feature(allocator_api))] |
3 | 1 | // for `volatile_memset` |
4 | 2 | #![cfg_attr(feature = "nightly_core_intrinsics", feature(core_intrinsics))] |
5 | 3 | #![cfg_attr(not(feature = "std"), no_std)] |
|
23 | 21 | //! visible on the prompt; it is only to give an idea of how to use this crate. |
24 | 22 | //! |
25 | 23 | //! ``` |
26 | | -//! #![feature(allocator_api)] |
27 | | -//! // requires `nightly_allocator_api` crate feature to be enabled and a nightly compiler |
28 | 24 | //! use secmem_alloc::allocator_api::{Allocator, Global, Vec}; |
29 | 25 | //! use secmem_alloc::zeroizing_alloc::ZeroizeAlloc; |
30 | 26 | //! |
|
52 | 48 | //! written to swap. |
53 | 49 | //! |
54 | 50 | //! ``` |
55 | | -//! // requires no crate features and works on stable |
56 | | -//! // if you enable the `nightly_allocator_api` crate feature, the following line is necessary |
57 | | -//! #![feature(allocator_api)] |
58 | | -//! |
59 | 51 | //! use secmem_alloc::allocator_api::{Allocator, Box}; |
60 | 52 | //! use secmem_alloc::sec_alloc::SecStackSinglePageAlloc; |
61 | 53 | //! |
|
81 | 73 | //! - `std` (default): Enable functionality that requires `std`. Currently only |
82 | 74 | //! required for `Error` implements and required for tests. This feature is |
83 | 75 | //! enabled by default. |
84 | | -//! - `nightly_allocator_api` (requires nightly): Use the nightly allocator api |
85 | | -//! from the standard library (actually the `core` crate), gated behind the |
86 | | -//! nightly-only feature `allocator_api`. When disabled, a copy of the |
87 | | -//! allocator api included in this crate, available through |
88 | | -//! `secmem_alloc::allocator_api`, will be used. This feature requires a |
89 | | -//! nightly compiler. |
90 | 76 | //! - `nightly_core_intrinsics` (requires nightly): Use the intrinsics from the |
91 | 77 | //! standard library (actually the `core` crate), gated behind the |
92 | 78 | //! nightly-only feature `core_intrinsics`. This allows for a slightly faster |
|
95 | 81 | //! - `nightly` (requires nightly): Enable all nightly-only features (i.e. the |
96 | 82 | //! above two). Enabling this feature is highly recommended when a nightly |
97 | 83 | //! compiler is available. This feature requires a nightly compiler. |
98 | | -//! - `dev` (requires nightly): This feature enables all features required to |
99 | | -//! run the test-suite, and should only be enabled for that purpose. This |
100 | | -//! feature currently requires a nightly compiler. |
| 84 | +//! - `dev`: Used internally for running tests. |
101 | 85 | //! |
102 | 86 | //! |
103 | 87 | //! # MSRV Policy |
|
0 commit comments