From 31b0fb3140434285a9ee5f1cdcdaf1602b85005e Mon Sep 17 00:00:00 2001 From: MaulingMonkey Date: Fri, 26 Jan 2024 02:40:03 -0800 Subject: [PATCH] =?UTF-8?q?doc/features.md=20=E2=86=92=20`mod=20=5Ffeature?= =?UTF-8?q?s`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/features.md | 3 ++- src/_ialloc.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/features.md b/doc/features.md index 2c11d87..8a0e11b 100644 --- a/doc/features.md +++ b/doc/features.md @@ -1,4 +1,5 @@ -## Features +Cargo features of the [`ialloc`](crate) crate. + | Feature | Description | Additional Requirements | | ----------------------| ----------------------------------------------| ------------------------| | | **API Design** diff --git a/src/_ialloc.rs b/src/_ialloc.rs index 95b01a1..6664966 100644 --- a/src/_ialloc.rs +++ b/src/_ialloc.rs @@ -1,6 +1,5 @@ #![cfg_attr(allocator_api = "unstable", feature(allocator_api))] #![doc = include_str!("../Readme.md")] -#![doc = include_str!("../doc/features.md")] #![no_std] #![forbid(unreachable_patterns)] // often indicates e.g. a typoed "constant" in a match statement @@ -30,6 +29,8 @@ mod align { } #[cfg(doc)] #[doc = include_str!("../doc/assumptions.md")] pub mod _assumptions {} +#[cfg(doc)] #[doc = include_str!("../doc/features.md")] pub mod _features {} + #[path = "allocator/_allocator.rs" ] pub mod allocator; #[path = "boxed/_boxed.rs" ] pub mod boxed; #[path = "traits/_traits.rs" ] pub mod traits; #[doc(hidden)] pub use traits::*;