Installation
cargo install octopux-cli # the `octopux` CLI
cargo install sqlx-cli # optional, for `sqlx migrate run`
The library, in your crate:
cargo add octopux --features sqlx,openapi
cargo add actix-web serde --features serde/derive
Features
| Feature | Enables | Also add |
|---|---|---|
sqlx |
The sqlx derives (SqlxModel, SqlxFilter…) |
sqlx --features runtime-tokio,sqlite,macros,migrate,chrono |
openapi |
The documented routes | apistos --features chrono,swagger-ui and schemars --rename schemars --package apistos-schemars |
Add chrono --features serde when a model has date fields or uses --timestamps.
octopux --bootstrap offers to install all these dependencies for you.