Cargo Features
Bitflag has no features set by default.
[dependencies]
bitflag = { version = "0.10.1", features = ["std", "alloc", "serde", "arbitrary", "bytemuck", "custom-types", "const-mut-ref"] }
- std
-
Just to satisfy
- alloc
-
Use string for more information for parse errors.
- serde
-
Implement
SerializeandDeserializefor the type with the bitflag attribute. This do not addserdein your dependency treeEnables serde of bitflag-attr-macros
- arbitrary
-
Implement
Arbitraryfor the type with the bitflag attribute. This do not addarbitraryin your dependency treeEnables arbitrary of bitflag-attr-macros
- bytemuck
-
Implement
PodandZeroablefor the type with the bitflag attribute. This do not addbytemuckin your dependency treeEnables bytemuck of bitflag-attr-macros
- custom-types
-
Allows to use custom types as parameter for the bitflags macro.
Enables custom-types of bitflag-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 bitflag-attr-macros