1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.56.0"
15name = "bitflags"
16version = "2.8.0"
17authors = ["The Rust Project Developers"]
18build = false
19exclude = [
20 "/tests",
21 "/.github",
22]
23autolib = false
24autobins = false
25autoexamples = false
26autotests = false
27autobenches = false
28description = """
29A macro to generate structures which behave like bitflags.
30"""
31homepage = "https://github.com/bitflags/bitflags"
32documentation = "https://docs.rs/bitflags"
33readme = "README.md"
34keywords = [
35 "bit",
36 "bitmask",
37 "bitflags",
38 "flags",
39]
40categories = ["no-std"]
41license = "MIT OR Apache-2.0"
42repository = "https://github.com/bitflags/bitflags"
43
44[package.metadata.docs.rs]
45features = ["example_generated"]
46
47[lib]
48name = "bitflags"
49path = "src/lib.rs"
50
51[[example]]
52name = "custom_bits_type"
53path = "examples/custom_bits_type.rs"
54
55[[example]]
56name = "custom_derive"
57path = "examples/custom_derive.rs"
58
59[[example]]
60name = "fmt"
61path = "examples/fmt.rs"
62
63[[example]]
64name = "macro_free"
65path = "examples/macro_free.rs"
66
67[[example]]
68name = "serde"
69path = "examples/serde.rs"
70
71[[bench]]
72name = "parse"
73path = "benches/parse.rs"
74
75[dependencies.arbitrary]
76version = "1.0"
77optional = true
78
79[dependencies.bytemuck]
80version = "1.12"
81optional = true
82
83[dependencies.compiler_builtins]
84version = "0.1.2"
85optional = true
86
87[dependencies.core]
88version = "1.0.0"
89optional = true
90package = "rustc-std-workspace-core"
91
92[dependencies.serde]
93version = "1.0.103"
94optional = true
95default-features = false
96
97[dev-dependencies.arbitrary]
98version = "1.0"
99features = ["derive"]
100
101[dev-dependencies.bytemuck]
102version = "1.12.2"
103features = ["derive"]
104
105[dev-dependencies.rustversion]
106version = "1.0"
107
108[dev-dependencies.serde_derive]
109version = "1.0.103"
110
111[dev-dependencies.serde_json]
112version = "1.0"
113
114[dev-dependencies.serde_test]
115version = "1.0.19"
116
117[dev-dependencies.trybuild]
118version = "1.0.18"
119
120[dev-dependencies.zerocopy]
121version = "0.8"
122features = ["derive"]
123
124[features]
125example_generated = []
126rustc-dep-of-std = [
127 "core",
128 "compiler_builtins",
129]
130std = []
131
Learn Rust with the experts
Find out more