[Framework examples →](../)

# Rust data loader to generate JSON

View live: <https://observablehq.observablehq.cloud/framework-example-loader-rust-to-json/>

This Observable Framework example demonstrates how to write a data loader in Rust that runs a Monte Carlo simulation of poker hands, calculates statistics about how often each category of hand was found, then outputs JSON.

The data loader lives in [`src/data/poker.json.rs`](./src/data/poker.json.rs).
