Cargo Features

BitFlags has no features set by default.

[dependencies]
bitflags = { version = "2.5.0", features = ["std", "example_generated", "rustc-dep-of-std", "serde", "bytemuck", "arbitrary"] }
std
example_generated

Affects bitflags::example_generated

rustc-dep-of-std = compiler_builtins, core

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects external::serde

bytemuck implicit feature

Enables bytemuck

bytemuck:

A crate for mucking around with piles of bytes

core rustc-dep-of-std?

Enables rustc-std-workspace-core

compiler_builtins rustc-dep-of-std?
arbitrary implicit feature

Enables arbitrary

arbitrary:

The trait for generating structured data from unstructured data

Affects external::arbitrary