# Knowledge Group Advanced Software: Rust macros This repo contains the examples and short workshop (and possible solution) from the talk. ## Notes: Example 05 requires that you are running a postgres database, this can be started by running `docker compose up` in the example directory. It also requires that the `DATABASE_URL` environment variable is set, this can be achieved by sourcing the `.env` file. To setup the schema and data in the database you can use `sqlx-cli` (install: `cargo install sqlx-cli`), to apply to migrations run: ```bash sqlx migrate run ``` For the workshop in 06 several hints are giving on things that might cause trouble. To help debug the macro you can install `cargo expand`: `cargo install cargo-expand`.