Cargo Features
Bitflag-attr has no features set by default.
[dependencies]
bitflag-attr = { version = "0.12.0", features = ["std", "alloc", "serde", "arbitrary", "bytemuck", "custom-types", "const-mut-ref"] }
- std = alloc
-
Just to satisfy
- alloc std?
-
Use string for more information for parse errors.
- serde
-
Implement
Serialize
andDeserialize
for the type with the bitflag attribute. This do not addserde
in your dependency treeEnables serde of bitflags-attr-macros
- arbitrary
-
Implement
Arbitrary
for the type with the bitflag attribute. This do not addarbitrary
in your dependency treeEnables arbitrary of bitflags-attr-macros
- bytemuck
-
Implement
Pod
andZeroable
for the type with the bitflag attribute. This do not addbytemuck
in your dependency treeEnables bytemuck of bitflags-attr-macros
- custom-types
-
Allows to use custom types as parameter for the bitflags macro.
Enables custom-types of bitflags-attr-macros
- const-mut-ref
-
Generate as const functions some functions that take
&mut
(Only stable on rust 1.83.0: release date: 28 November, 2024)Enables const-mut-ref of bitflags-attr-macros