Typed authorization policies and extractors for Rust and Axum
- Rust 91.8%
- Nix 8.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
CI / checks (push) Successful in 0s
CI / checks-1 (push) Successful in 16s
nixbot/nix-eval evaluation succeeded in 14s (1 warning)
kennel/deploy deployment healthy
nixbot/nix-build gitea:ScottyLabs/leash#checks.x86_64-linux.hooks failed
nixbot/nix-build 1 of 5 attributes failed
|
||
| .forgejo/workflows | ||
| docs | ||
| src | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| zensical.toml | ||
Leash
Typed authorization policies and extractors for Rust and Axum. Handlers declare
access requirements with Authorized<P, S> and receive the checked policy output.
Applications supply their own state, identities, and resource types.
cargo add leash --git https://git.cmu.dev/ScottyLabs/leash --branch main
Development
collar dev run -- cargo test --locked
collar check --all
collar dev run -- docs
The repository uses the shared ScottyLabs Rust environment and CI from Kennel, following Collar's documentation setup.