

- dev: rust:1.96.0 slim
- prod: distroless cc-debian13:nonroot
| Environment |
Rust Image Size |
Postgres Image Size |
| Development |
900 MB |
300MB |
| Production |
70 MB |
|
$~/dev/learning-rust/axum just
🚀AXUM
help # List available commands
lint # Run lints on the workspace members (cargo fmt and clippy)
check # Run cargo check on the workspace members
build # Run cargo build on the workspace members
clean # Run cargo clean on the workspace members
test # Run cargo test on the workspace members
book ... # Forward to the BOOK-SERVICE
📖BOOK SERVICE
help # List available commands
lint # Run lints (cargo fmt and clippy)
check # Run cargo check
build # Run cargo build
clean # Run cargo clean on the book_service package
test # Run cargo test
migration *cmd # Run DB migrate
app # Run server app
docker *cmd # Run docker commands
build-for-prod # Build production distroless image
.
├── Cargo.toml
├── Cargo.lock
├── crates
│ ├── book_service
│ │ ├── justfile
│ │ ├── Cargo.toml
│ │ ├── compose.yml
│ │ ├── Dockerfile
│ │ ├── prod.Dockerfile
│ │ ├── src
│ │ │ ├── lib.rs
│ │ │ ├── state.rs
│ │ │ ├── routes.rs
│ │ │ ├── config.rs
│ │ │ ├── errors.rs
│ │ │ ├── bin
│ │ │ │ ├── app.rs
│ │ │ │ └── migration.rs
│ │ │ ├── app
│ │ │ │ ├── mod.rs
│ │ │ │ ├── book
│ │ │ │ │ ├── mod.rs
│ │ │ │ │ ├── handler.rs
│ │ │ │ │ └── payload.rs
│ │ │ │ └── shared
│ │ │ │ ├── mod.rs
│ │ │ │ └── pagination.rs
│ │ │ └── models
│ │ │ ├── mod.rs
│ │ │ ├── author.rs
│ │ │ └── book.rs
│ │ ├── toasty
│ │ │ ├── history.toml
│ │ │ ├── migrations
│ │ │ │ └── 0000_migration.sql
│ │ │ └── snapshots
│ │ │ └── 0000_snapshot.toml
│ │ └── Toasty.toml
│ └── README.md
├── justfile
├── rustfmt.toml
└── LICENSE