ayaml-edit 1.0.0

Verified source-preserving edits for YAML documents built on ayaml.
Documentation
1
2
3
4
5
6
7
8
9
10
11
# ayaml-edit

Verified, source-preserving edits for YAML documents built exclusively on [`ayaml`](https://crates.io/crates/ayaml)'s public API.

## Capabilities

- **Scalar replacement** (`replace_scalar`, `replace_scalar_with`)
- **Whole-entry removal** (`remove_entry`, `remove_entry_with`)
- **Verified batch edits** (`apply_batch`, `apply_batch_with`)
- **Post-edit verification:** every returned `VerifiedEdit` is reparsed with `ayaml` and verified against both the expected value tree and the event stream before being returned, preserving byte-order marks, CRLF line endings, comments, and neighboring bytes.
- **Conservative refusals:** anchors, aliases, tags, block scalars, multiple documents, opt-in merge-key expansion, and ambiguous comment placement are refused rather than risking silent corruption.