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] |
13 | edition = "2021" |
14 | rust-version = "1.56.0" |
15 | name = "bitflags" |
16 | version = "2.8.0" |
17 | authors = ["The Rust Project Developers" ] |
18 | build = false |
19 | exclude = [ |
20 | "/tests" , |
21 | "/.github" , |
22 | ] |
23 | autolib = false |
24 | autobins = false |
25 | autoexamples = false |
26 | autotests = false |
27 | autobenches = false |
28 | description = "" " |
29 | A macro to generate structures which behave like bitflags. |
30 | " "" |
31 | homepage = "https://github.com/bitflags/bitflags" |
32 | documentation = "https://docs.rs/bitflags" |
33 | readme = "README.md" |
34 | keywords = [ |
35 | "bit" , |
36 | "bitmask" , |
37 | "bitflags" , |
38 | "flags" , |
39 | ] |
40 | categories = ["no-std" ] |
41 | license = "MIT OR Apache-2.0" |
42 | repository = "https://github.com/bitflags/bitflags" |
43 | |
44 | [package.metadata.docs.rs] |
45 | features = ["example_generated" ] |
46 | |
47 | [lib] |
48 | name = "bitflags" |
49 | path = "src/lib.rs" |
50 | |
51 | [[example]] |
52 | name = "custom_bits_type" |
53 | path = "examples/custom_bits_type.rs" |
54 | |
55 | [[example]] |
56 | name = "custom_derive" |
57 | path = "examples/custom_derive.rs" |
58 | |
59 | [[example]] |
60 | name = "fmt" |
61 | path = "examples/fmt.rs" |
62 | |
63 | [[example]] |
64 | name = "macro_free" |
65 | path = "examples/macro_free.rs" |
66 | |
67 | [[example]] |
68 | name = "serde" |
69 | path = "examples/serde.rs" |
70 | |
71 | [[bench]] |
72 | name = "parse" |
73 | path = "benches/parse.rs" |
74 | |
75 | [dependencies.arbitrary] |
76 | version = "1.0" |
77 | optional = true |
78 | |
79 | [dependencies.bytemuck] |
80 | version = "1.12" |
81 | optional = true |
82 | |
83 | [dependencies.compiler_builtins] |
84 | version = "0.1.2" |
85 | optional = true |
86 | |
87 | [dependencies.core] |
88 | version = "1.0.0" |
89 | optional = true |
90 | package = "rustc-std-workspace-core" |
91 | |
92 | [dependencies.serde] |
93 | version = "1.0.103" |
94 | optional = true |
95 | default-features = false |
96 | |
97 | [dev-dependencies.arbitrary] |
98 | version = "1.0" |
99 | features = ["derive" ] |
100 | |
101 | [dev-dependencies.bytemuck] |
102 | version = "1.12.2" |
103 | features = ["derive" ] |
104 | |
105 | [dev-dependencies.rustversion] |
106 | version = "1.0" |
107 | |
108 | [dev-dependencies.serde_derive] |
109 | version = "1.0.103" |
110 | |
111 | [dev-dependencies.serde_json] |
112 | version = "1.0" |
113 | |
114 | [dev-dependencies.serde_test] |
115 | version = "1.0.19" |
116 | |
117 | [dev-dependencies.trybuild] |
118 | version = "1.0.18" |
119 | |
120 | [dev-dependencies.zerocopy] |
121 | version = "0.8" |
122 | features = ["derive" ] |
123 | |
124 | [features] |
125 | example_generated = [] |
126 | rustc-dep-of-std = [ |
127 | "core" , |
128 | "compiler_builtins" , |
129 | ] |
130 | std = [] |
131 | |