Cargo Features

bitflags-attr-macros has no features set by default.

[dependencies]
bitflags-attr-macros = { version = "0.10.0", features = ["serde", "arbitrary", "bytemuck", "custom-types", "const-mut-ref"] }
serde

Implement Serialize and Deserialize for the type with the bitflag attribute. This do not add serde in your dependency tree

arbitrary

Implement Arbitrary for the type with the bitflag attribute. This do not add arbitrary in your dependency tree

bytemuck

Implement Pod and Zeroable for the type with the bitflag attribute. This do not add bytemuck in your dependency tree

custom-types

Allows to use custom types as parameter for the bitflags macro

const-mut-ref

Generate as const functions some functions that take &mut (Only stable on rust 1.83.0: release date: 28 November, 2024)