[package]
edition = "2024"
rust-version = "1.85"
name = "oneyaml"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "oneyaml — one core, one interpretation: serde + lossless editing for YAML 1.2."
documentation = "https://docs.rs/oneyaml"
readme = "README.md"
keywords = [
"yaml",
"serde",
"lossless",
"parser",
"config",
]
categories = [
"encoding",
"parser-implementations",
"config",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/recursive-ai-oss/oneyaml-rust"
[package.metadata.docs.rs]
features = [
"miette",
"serde_json",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
__internal-checks = []
miette = ["dep:miette"]
serde_json = ["dep:serde_json"]
[lib]
name = "oneyaml"
path = "src/lib.rs"
[[example]]
name = "compose_merge"
path = "examples/compose_merge.rs"
test = true
[[example]]
name = "edit_config"
path = "examples/edit_config.rs"
test = true
[[example]]
name = "edit_differential"
path = "examples/edit_differential.rs"
[[example]]
name = "gha_workflow"
path = "examples/gha_workflow.rs"
test = true
[[example]]
name = "k8s_manifest"
path = "examples/k8s_manifest.rs"
test = true
[[example]]
name = "stack_probe"
path = "examples/stack_probe.rs"
[[test]]
name = "alias_byte_budget"
path = "tests/alias_byte_budget.rs"
[[test]]
name = "api_examples"
path = "tests/api_examples.rs"
[[test]]
name = "api_leak"
path = "tests/api_leak.rs"
[[test]]
name = "block_scalar_entries"
path = "tests/block_scalar_entries.rs"
[[test]]
name = "bom_prefix"
path = "tests/bom_prefix.rs"
[[test]]
name = "bounded_echoes"
path = "tests/bounded_echoes.rs"
[[test]]
name = "bounded_tags_errors"
path = "tests/bounded_tags_errors.rs"
[[test]]
name = "code_coverage"
path = "tests/code_coverage.rs"
[[test]]
name = "comment_api"
path = "tests/comment_api.rs"
[[test]]
name = "comment_edit_owners"
path = "tests/comment_edit_owners.rs"
[[test]]
name = "comment_edit_shapes"
path = "tests/comment_edit_shapes.rs"
[[test]]
name = "comment_edits"
path = "tests/comment_edits.rs"
[[test]]
name = "comment_golden"
path = "tests/comment_golden.rs"
[[test]]
name = "comment_reads"
path = "tests/comment_reads.rs"
[[test]]
name = "comment_scaling"
path = "tests/comment_scaling.rs"
[[test]]
name = "comments"
path = "tests/comments.rs"
[[test]]
name = "diagnostic_order"
path = "tests/diagnostic_order.rs"
[[test]]
name = "diagnostics_cap_meaning"
path = "tests/diagnostics_cap_meaning.rs"
[[test]]
name = "diagnostics_cap_order"
path = "tests/diagnostics_cap_order.rs"
[[test]]
name = "document"
path = "tests/document.rs"
[[test]]
name = "document_anchors"
path = "tests/document_anchors.rs"
[[test]]
name = "document_clone"
path = "tests/document_clone.rs"
[[test]]
name = "document_edit"
path = "tests/document_edit.rs"
[[test]]
name = "document_lenient_limits"
path = "tests/document_lenient_limits.rs"
[[test]]
name = "document_realworld"
path = "tests/document_realworld.rs"
[[test]]
name = "document_scaling"
path = "tests/document_scaling.rs"
[[test]]
name = "document_stream_reads"
path = "tests/document_stream_reads.rs"
[[test]]
name = "edit_regressions"
path = "tests/edit_regressions.rs"
[[test]]
name = "edit_regressions_2"
path = "tests/edit_regressions_2.rs"
[[test]]
name = "edit_regressions_3"
path = "tests/edit_regressions_3.rs"
[[test]]
name = "edit_regressions_4"
path = "tests/edit_regressions_4.rs"
[[test]]
name = "edit_unsupported_audit"
path = "tests/edit_unsupported_audit.rs"
[[test]]
name = "enum_tag_variants"
path = "tests/enum_tag_variants.rs"
[[test]]
name = "first_error_agreement"
path = "tests/first_error_agreement.rs"
[[test]]
name = "footer_comments"
path = "tests/footer_comments.rs"
[[test]]
name = "freeze_gate"
path = "tests/freeze_gate.rs"
[[test]]
name = "fuzz_findings"
path = "tests/fuzz_findings.rs"
[[test]]
name = "has_errors"
path = "tests/has_errors.rs"
[[test]]
name = "json_convert"
path = "tests/json_convert.rs"
[[test]]
name = "max_diagnostics"
path = "tests/max_diagnostics.rs"
[[test]]
name = "memory_compaction"
path = "tests/memory_compaction.rs"
[[test]]
name = "merge_insert_blank_lines"
path = "tests/merge_insert_blank_lines.rs"
[[test]]
name = "merge_meaning"
path = "tests/merge_meaning.rs"
[[test]]
name = "miette_diag"
path = "tests/miette_diag.rs"
[[test]]
name = "multiline_flow_entries"
path = "tests/multiline_flow_entries.rs"
[[test]]
name = "node_deserialize"
path = "tests/node_deserialize.rs"
[[test]]
name = "node_mut_api"
path = "tests/node_mut_api.rs"
[[test]]
name = "refused_edits"
path = "tests/refused_edits.rs"
[[test]]
name = "render"
path = "tests/render.rs"
[[test]]
name = "render_golden"
path = "tests/render_golden.rs"
[[test]]
name = "same_meaning"
path = "tests/same_meaning.rs"
[[test]]
name = "ser_golden"
path = "tests/ser_golden.rs"
[[test]]
name = "ser_props"
path = "tests/ser_props.rs"
[[test]]
name = "ser_regressions"
path = "tests/ser_regressions.rs"
[[test]]
name = "ser_settings_roundtrip"
path = "tests/ser_settings_roundtrip.rs"
[[test]]
name = "ser_stream"
path = "tests/ser_stream.rs"
[[test]]
name = "serde_construct"
path = "tests/serde_construct.rs"
[[test]]
name = "serde_de"
path = "tests/serde_de.rs"
[[test]]
name = "serde_deep"
path = "tests/serde_deep.rs"
[[test]]
name = "serde_ignored"
path = "tests/serde_ignored.rs"
[[test]]
name = "serde_pinned"
path = "tests/serde_pinned.rs"
[[test]]
name = "spanned_alias"
path = "tests/spanned_alias.rs"
[[test]]
name = "stream_scaling"
path = "tests/stream_scaling.rs"
[[test]]
name = "string_paths"
path = "tests/string_paths.rs"
[[test]]
name = "suite_json"
path = "tests/suite_json.rs"
[[test]]
name = "tag_interning"
path = "tests/tag_interning.rs"
[[test]]
name = "tag_prefix"
path = "tests/tag_prefix.rs"
[[test]]
name = "tag_prefix_sharing"
path = "tests/tag_prefix_sharing.rs"
[[test]]
name = "tag_reads"
path = "tests/tag_reads.rs"
[[test]]
name = "tagged_variant_content"
path = "tests/tagged_variant_content.rs"
[[test]]
name = "tail_reader"
path = "tests/tail_reader.rs"
[[test]]
name = "to_value"
path = "tests/to_value.rs"
[[test]]
name = "typed_reads"
path = "tests/typed_reads.rs"
[[test]]
name = "value_de"
path = "tests/value_de.rs"
[[test]]
name = "value_deep"
path = "tests/value_deep.rs"
[[test]]
name = "wide_lookup_index"
path = "tests/wide_lookup_index.rs"
[dependencies.miette]
version = "7.6.0"
optional = true
default-features = false
[dependencies.oneyaml-core]
version = "1.0.1"
[dependencies.oneyaml-syntax]
version = "0.1.1"
[dependencies.serde]
version = "1.0.228"
features = ["std"]
default-features = false
[dependencies.serde_json]
version = "1.0.149"
features = ["std"]
optional = true
default-features = false
[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.149"
[lints.clippy]
arithmetic_side_effects = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.rust]
unsafe_code = "forbid"