Skip to content

Commit

Permalink
doc/features.md → mod _features
Browse files Browse the repository at this point in the history
  • Loading branch information
MaulingMonkey committed Jan 26, 2024
1 parent 3a34ce3 commit 31b0fb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/features.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Features
Cargo features of the [`ialloc`](crate) crate.

| Feature | Description | Additional Requirements |
| ----------------------| ----------------------------------------------| ------------------------|
| | **API Design**
Expand Down
3 changes: 2 additions & 1 deletion src/_ialloc.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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::*;
Expand Down

0 comments on commit 31b0fb3

Please # to comment.