mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-11 18:07:50 +00:00
Every `inet` column holds a single host address, so a type override in the new per-crate `sqlx.toml` replaces the `as "col: IpAddr"` casts the queries needed to avoid the default `IpNetwork` mapping. Both crates using the query macros also pin `chrono` as the date/time crate. This needs the `sqlx-toml` feature on `sqlx`. `sqlx-cli` needs it too, as it refuses to run in a crate directory that contains a `sqlx.toml` file otherwise. It is a default feature of `sqlx-cli`, so only the `--no-default-features` install in the docs has to name it.