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.

Table 1. Examples: 8
#ExampleShowsLines
1Write and readparse records, write a pack, open it, read it back, save it50
2Verifythe verify report; a damaged pack refused, then reported45
3Filter and viewsfilter by kind and by id prefix; entity and relation views56
4Appendix and embeddingsembedding rows, a tensor, and bindings74
5Mergethe default strategy and union; strategy names62
6Diffadded, removed, changed; a pack against itself37
7Identitycanonical JSON, dedup key, sort key, opaque records43
8Files, limits, errorsfiles, gzip input, a size cap, matching on error kinds60
Sections