-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Cargo.toml
86 lines (70 loc) · 1.87 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
79
80
81
82
83
84
85
86
[package]
authors = ["sharks <sharks@sharks>"]
edition = "2021"
name = "deku"
version = "0.18.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.71"
[lib]
bench = false
[workspace]
members = [
"deku-derive"
]
[features]
default = ["std", "bits"]
std = ["deku_derive/std", "bitvec?/std", "alloc", "no_std_io/std"]
alloc = ["bitvec?/alloc"]
logging = ["deku_derive/logging", "log"]
no-assert-string = ["deku_derive/no-assert-string"]
error_in_core = []
bits = ["dep:bitvec", "deku_derive/bits"]
[dependencies]
deku_derive = { version = "^0.18.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.8.0", default-features = false, features = ["alloc"], package = "no_std_io2" }
rustversion = "1.0.17"
[dev-dependencies]
rstest = "0.22.0"
hexlit = "0.5.5"
criterion = "0.5.1"
alloc_counter = "0.0.4"
trybuild = "1.0.99"
rustc-hash = "2.0.0"
env_logger = "0.11.5"
assert_hex = "0.4.1"
[[bench]]
name = "deku"
harness = false
[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"
[[example]]
name = "enums_catch_all"
required-features = ["bits"]
[[example]]
name = "enums"
[[example]]
name = "example"
required-features = ["bits"]
[[example]]
name = "ipv4"
required-features = ["bits"]
[[example]]
name = "many"
[[example]]
name = "read_all"