diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-03 01:25:20 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-03 02:09:25 -0400 |
| commit | b404344a7c4ab5cb6c7d7b445fab796be79b848f (patch) | |
| tree | c476b125316b9d4aa7bdece7c9bb8e2f65d2961e /git-hooks/pre-commit | |
| parent | 92a7518975c6bc4b2f9b9c6c12c458b24e8cfaf5 (diff) | |
Allow login creation and authentication.
This is a beefy change, as it adds a TON of smaller pieces needed to make this all function:
* A database migration.
* A ton of new crates for things like password validation, timekeeping, and HTML generation.
* A first cut at a module structure for routes, templates, repositories.
* A family of ID types, for identifying various kinds of domain thing.
* AppError, which _doesn't_ implement Error but can be sent to clients.
Diffstat (limited to 'git-hooks/pre-commit')
| -rwxr-xr-x | git-hooks/pre-commit | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit new file mode 100755 index 0000000..98f1c37 --- /dev/null +++ b/git-hooks/pre-commit @@ -0,0 +1,10 @@ +#!/bin/bash -e + +# Don't put anything here that routinely takes longer than a second or so to +# run. It gets old fast. That's why this uses `cargo check` and not `cargo +# test`, for example. + +# Make sure there are no screamers in the code. +cargo check +# Make sure the prepared statement data in .sqlx is up to date. +cargo sqlx prepare --check |
