We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e197bf5 commit dffa2e3Copy full SHA for dffa2e3
1 file changed
src/lib.rs
@@ -20,6 +20,15 @@ Add `bitflags` to your `Cargo.toml`:
20
version = "2.9.0"
21
```
22
23
+## Crate features
24
+
25
+The `bitflags` library defines a few Cargo features that you can opt-in to:
26
27
+- `std`: Implement the `Error` trait on error types used by `bitflags`.
28
+- `serde`: Support deriving `serde` traits on generated flags types.
29
+- `arbitrary`: Support deriving `arbitrary` traits on generated flags types.
30
+- `bytemuck`: Support deriving `bytemuck` traits on generated flags types.
31
32
## Generating flags types
33
34
Use the [`bitflags`] macro to generate flags types:
0 commit comments