Crates.io | yaml-hash |
lib.rs | yaml-hash |
version | |
source | src |
created_at | 2024-03-13 01:22:13.546591 |
updated_at | 2024-12-05 01:49:36.339858 |
description | Improved YAML Hash |
homepage | |
repository | https://github.com/qtfkwk/yaml-hash |
max_upload_size | |
id | 1171222 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Improved YAML Hash
If the YAML data you're working with is well-defined and you want to write the necessary types, you
should use serde
and serde_yaml
.
Otherwise, yaml_rust2
provides a foundation for working with varied YAML data or when you don't
want to write the necessary types.
This crate provides the YamlHash
struct, which is a wrapper for yaml_rust2::yaml::Hash
, and
supports some additional capabilities:
&str
via impl From<&str>
String
via impl Display
YamlHash
or yaml_rust2::Yaml
via
get
and get_yaml
; return the root hash if the key
is ""
.YamlHash
with another YamlHash
, YAML hash string, or YAML hash file to create a
new YamlHash
via merge
, merge_str
, or
merge_file