forked from sharksforarms/deku
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (78 loc) · 2.1 KB
/
Cargo.toml
File metadata and controls
95 lines (78 loc) · 2.1 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
authors = ["sharks <sharks@sharks>"]
edition = "2021"
name = "deku"
version = "0.19.1"
license = "MIT OR Apache-2.0"
repository = "https://github.com/sharksforarms/deku"
keywords = ["deku", "bits", "serialization", "deserialization", "struct"]
categories = ["encoding", "parsing", "no-std"]
description = "bit level serialization/deserialization proc-macro for structs"
readme = "README.md"
rust-version = "1.81"
[lib]
bench = false
[workspace]
members = [
"deku-derive"
]
[features]
default = ["std", "bits", "descriptive-errors"]
std = ["deku_derive/std", "bitvec?/std", "alloc", "no_std_io/std"]
alloc = ["bitvec?/alloc", "deku_derive/alloc", "no_std_io/alloc" ]
logging = ["deku_derive/logging", "log"]
bits = ["dep:bitvec", "deku_derive/bits", "alloc" ]
descriptive-errors = ["alloc"]
[dependencies]
deku_derive = { version = "^0.19.1", path = "deku-derive", default-features = false}
bitvec = { version = "1.0.1", default-features = false, optional = true }
log = { version = "0.4.22", optional = true }
no_std_io = { version = "0.9.0", default-features = false, package = "no_std_io2" }
rustversion = "1.0.17"
[dev-dependencies]
rstest = "0.25.0"
hexlit = "0.5.5"
criterion = "0.6.0"
alloc_counter = "0.0.4"
trybuild = "1.0.99"
rustc-hash = "=2.1.0"
env_logger = "0.11.5"
assert_hex = "0.4.1"
log = { version = "0.4.22" }
[[bench]]
name = "deku"
harness = false
required-features = ["alloc"]
[lints]
workspace = true
[workspace.lints.clippy]
# Triggers in macro generated code of darling
# https://github.com/rust-lang/rust-clippy/issues/12643
manual-unwrap-or-default = "allow"
[[example]]
name = "custom_reader_and_writer"
required-features = ["bits"]
[[example]]
name = "deku_input"
required-features = ["std"]
[[example]]
name = "enums_catch_all"
required-features = ["bits"]
[[example]]
name = "enums"
required-features = ["std"]
[[example]]
name = "example"
required-features = ["bits"]
[[example]]
name = "ipv4"
required-features = ["bits"]
[[example]]
name = "80211"
required-features = ["bits"]
[[example]]
name = "many"
required-features = ["std"]
[[example]]
name = "read_all"
required-features = ["std"]