mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
Use the nom crate for parsing. This will arguably be both simpler to read and more reliable than our current ad-hoc parser. Add a few extra tests to enforce the new rules that the new parser is supposed to enforce. BUG=b:218223240 TEST=cargo test -p serde_keyvalues -p crosvm TEST=ARCVM starts successfully. Change-Id: I4ea188ffe8aee872071c900793c50127855403ec Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3822428 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
20 lines
503 B
TOML
20 lines
503 B
TOML
[package]
|
|
name = "serde_keyvalue"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
argh_derive = ["argh", "serde_keyvalue_derive"]
|
|
|
|
[dependencies]
|
|
argh = { version = "0.1.7", optional = true }
|
|
serde_keyvalue_derive = { path = "serde_keyvalue_derive", optional = true }
|
|
serde = "1"
|
|
thiserror = { version = "1.0.20" }
|
|
remain = "*"
|
|
num-traits = "0.2"
|
|
nom = { version = "7.1.0", features = ["alloc"] }
|
|
|
|
[dev-dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|