Skip to content

Commit

Permalink
Whoops. Fix documentation for cargo features.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed Jul 22, 2024
1 parent b2d859d commit f73ef60
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions enumset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
//! A library for defining enums that can be used in compact bit sets. It supports arbitrarily
//! large enums, and has very basic support for using them in constants.
//!
//! The following feature flags may be used for this crate:
//! # Cargo Features
//!
//! * `serde` enables serialization support for [`EnumSet`].
//! * `alloc` enables functions that require allocation.
//! The following cargo features are available for this crate:
//!
//! * `serde`: Allows serialization and deserialization of the types in this crate.
//! * `alloc`: Enables the use of functions that requires an allocator.
//! * `proc-macro-crate`: Enable the use of the `proc-macro-crate` crate to allow the renaming of
//! the `enumset` crate in your user crate. This feature increases the MSRV to 1.69.0
//!
//! # Defining enums for use with EnumSet
//!
Expand Down Expand Up @@ -109,15 +113,6 @@ pub use crate::traits::{EnumSetType, EnumSetTypeWithRepr};
/// * Variant discriminators must be defined with integer literals. Expressions like `V = 1 + 1`
/// are not currently supported.
///
/// # Cargo Features
///
/// The following cargo features are available for this crate:
///
/// * `serde`: Allows serialization and deserialization of the types in this crate.
/// * `alloc`: Enables the use of functions that requires an allocator.
/// * `proc-macro-crate`: Enable the use of the `proc-macro-crate` crate to allow the renaming of
/// the `enumset` crate in your user crate. This feature increases the MSRV to 1.69.0
///
/// # Additional Impls
///
/// In addition to the implementation of `EnumSetType`, this procedural macro creates multiple
Expand Down

0 comments on commit f73ef60

Please sign in to comment.