-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
78 lines (67 loc) · 2.12 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[package]
name = "bitflag-attr"
authors = ["GrayJack <[email protected]>"]
version = "0.10.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A macro to generate bitflags structures from C-like enums"
keywords = ["bit", "bitmask", "bitflags", "flags"]
categories = ["no-std"]
repository = "https://github.com/GrayJack/bitflag-attr"
homepage = "https://github.com/GrayJack/bitflag-attr"
rust-version = "1.81.0"
exclude = ["/tests", "/.github"]
[dependencies]
bitflags-attr-macros = { version = "=0.10.0", path = "bitflags-attr-macros" }
[dev-dependencies]
trybuild = "1.0"
serde = "1.0"
arbitrary = "1.0"
bytemuck = "1.0"
serde_json = "1.0"
serde_test = "1.0.19"
[features]
default = []
# Just to satisfy
std = []
# Use string for more information for parse errors.
alloc = []
# Implement `Serialize` and `Deserialize` for the type with the bitflag attribute.
# This do not add `serde` in your dependency tree
serde = ["bitflags-attr-macros/serde"]
# Implement `Arbitrary` for the type with the bitflag attribute.
# This do not add `arbitrary` in your dependency tree
arbitrary = ["bitflags-attr-macros/arbitrary"]
# Implement `Pod` and `Zeroable` for the type with the bitflag attribute.
# This do not add `bytemuck` in your dependency tree
bytemuck = ["bitflags-attr-macros/bytemuck"]
# Allows to use custom types as parameter for the bitflags macro.
custom-types = ["bitflags-attr-macros/custom-types"]
# Generate as const functions some functions that take `&mut` (Only stable on rust 1.83.0: release date: 28 November, 2024)
const-mut-ref = ["bitflags-attr-macros/const-mut-ref"]
[workspace]
members = ["bitflags-attr-macros"]
[[test]]
name = "tests"
path = "tests/progress.rs"
[[test]]
name = "generated_api_tests"
path = "tests/api.rs"
[[test]]
name = "bitflags_imported_tests"
path = "tests/bitflags.rs"
[[test]]
name = "serde_tests"
path = "tests/serde.rs"
required-features = ["serde"]
[[test]]
name = "arbitrary_tests"
path = "tests/arbitrary.rs"
required-features = ["arbitrary"]
[[test]]
name = "bytemuck_tests"
path = "tests/bytemuck.rs"
required-features = ["bytemuck"]
[[example]]
name = "serde"
required-features = ["serde"]