Initial commit

This commit is contained in:
2026-04-14 03:44:59 +02:00
commit e92ea08a05
32 changed files with 589 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# 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`.