[M1] add manifest::write

This commit is contained in:
2026-05-08 10:50:38 +00:00
parent 95a8890623
commit b0c54b8f5a
6 changed files with 250 additions and 0 deletions

View File

@@ -25,3 +25,7 @@ All notable changes to cargoxx will be documented in this file.
`[package]` / `[build]` and unknown top-level keys are rejected; reserved
fields (`description`, `repository`, `[dev-dependencies]`, `[features]`,
`[workspace]`) are accepted. `tests/manifest_parse.cpp` covers 17 cases.
- `manifest::write(m, path)` serializes a `Manifest` as TOML using toml++.
Dependencies are emitted alphabetically (matches Cargo). Round-trip
property is exercised by `tests/manifest_write.cpp` (9 cases).
Defaulted `operator==` on the manifest structs supports comparison.