forked from NationTech/harmony
feat(harmony_macros): add yaml macro to validate YAML input
- Introduced a new `yaml` macro in `harmony_macros` that validates if the provided YAML string is valid by attempting to deserialize it using `serde_yaml`. - Added dependencies on `serde`, `serde_yaml` for handling YAML deserialization. - Included dev dependencies with features enabled for deriving types from `serde`.
This commit is contained in:
@@ -9,4 +9,9 @@ proc-macro = true
|
||||
[dependencies]
|
||||
harmony_types = { path = "../harmony_types" }
|
||||
quote = "1.0.37"
|
||||
serde = "1.0.217"
|
||||
serde_yaml = "0.9.34"
|
||||
syn = "2.0.90"
|
||||
|
||||
[dev-dependencies]
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
|
||||
Reference in New Issue
Block a user