Examples
- file format 6
- Rust SDK 1.0 preview
Eight complete programs. Each one ran and exited with status 0, and the output on its page is what it printed.
Every program checks its own claims with assert! and assert_eq!, so a program that printed its output also passed its checks.
Examples 1 to 6 need only plxi-sdk. Example 7 also needs serde_json; example 8 also needs flate2.
| # | Example | Shows | Lines |
|---|---|---|---|
| 1 | Write and read | parse records, write a pack, open it, read it back, save it | 50 |
| 2 | Verify | the verify report; a damaged pack refused, then reported | 45 |
| 3 | Filter and views | filter by kind and by id prefix; entity and relation views | 56 |
| 4 | Appendix and embeddings | embedding rows, a tensor, and bindings | 74 |
| 5 | Merge | the default strategy and union; strategy names | 62 |
| 6 | Diff | added, removed, changed; a pack against itself | 37 |
| 7 | Identity | canonical JSON, dedup key, sort key, opaque records | 43 |
| 8 | Files, limits, errors | files, gzip input, a size cap, matching on error kinds | 60 |