add a serde feature and dependency

This commit is contained in:
Brian Hicks 2022-08-10 16:33:32 -05:00
parent 1f45d13c67
commit fc4e4fa832
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
2 changed files with 9 additions and 0 deletions

View File

@ -205,9 +205,16 @@ dependencies = [
"pretty_assertions",
"quickcheck",
"quickcheck_macros",
"serde",
"static_assertions",
]
[[package]]
name = "serde"
version = "1.0.143"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553"
[[package]]
name = "static_assertions"
version = "1.1.0"

View File

@ -11,6 +11,7 @@ version = "0.0.1"
[dependencies]
static_assertions = "1.1.0"
arrayvec = "0.7.2"
serde = { version = "1", optional = true }
[dev-dependencies]
indoc = "1.0.3"
@ -21,3 +22,4 @@ libc = "0.2.106"
[features]
std = []
serde = ["dep:serde"]