diff --git a/Cargo.toml b/Cargo.toml index 55a9d38..6c50f19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "dyn-fmt" -version = "0.4.1" +version = "0.4.2" rust-version = "1.71" authors = ["warlock "] description = "Provides dynamic string format." @@ -14,4 +14,8 @@ repository = "https://github.com/A1-Triard/dyn-fmt" [features] default = ["std"] +## disable to make the library `#![no_std]`. std = [] + +[dependencies] +document-features = "0.2.7" diff --git a/src/lib.rs b/src/lib.rs index d93008d..3cc1644 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,10 +7,8 @@ //! | [`format_args!`](std::format_args) | [`Arguments::new`](Arguments::new) | //! | [`write!`](std::write) | [`dyn_write!`](dyn_write) | //! -//! **Crate features** -//! -//! * `"std"` -//! Enabled by default. Disable to make the library `#![no_std]`. +//! ## Feature flags +#![doc=document_features::document_features!()] #[cfg(feature = "std")] extern crate core;