docs: document crate features (#3269)

This commit is contained in:
Bjerg
2023-06-21 21:35:38 +02:00
committed by GitHub
parent 7042230102
commit 77167134d0
25 changed files with 110 additions and 14 deletions

View File

@ -6,6 +6,15 @@
))]
#![cfg_attr(not(feature = "std"), no_std)]
//! A fast RLP implementation.
//!
//! ## Feature Flags
//!
//! This crate works on `#[no_std]` targets if `std` is not enabled.
//!
//! - `derive`: Enables derive macros.
//! - `std`: Uses the Rust standard library.
#[cfg(feature = "alloc")]
extern crate alloc;