Files
zeekay 1ae8d33fa5 ci: fix minrust (pin quickcheck =1.0.3) + formatting (nightly cargo fmt)
Two pre-existing CI failures (unrelated to codegen/install-zap):
- minrust 1.81: quickcheck 1.1.0 pulls rand 0.10 -> rand_core 0.10.1, whose
  Cargo.toml requires the edition2024 feature (unstable on Cargo 1.81). Pin
  quickcheck to =1.0.3 (last version on rand 0.8 / rand_core 0.6.4) — within
  MSRV, no major bump. Fresh-resolve verified: rand_core 0.10.1 leaves the graph.
- formatting: ran 'cargo +nightly fmt --all'; the CI check
  (--check --unstable-features --error-on-unformatted, nightly) now passes.
2026-06-20 02:13:18 -07:00
..
2023-05-08 10:40:06 -04:00
2023-05-08 10:40:06 -04:00

fill_random_values example

This example demonstrates one possible use of runtime type instropection.

The library code in src/lib.rs can be used to fill in random data for any ZAP type. The annotations in fill.zap can be used to add contraints on the random generation.

See fill_addressbook.rs and fill_shapes.rs for example usage.

Here are some example random images output from fill_shapes.rs:

shapes1 shapes2