crane/docs/examples/sqlx.md

307 B

To build a cargo project which depends on the SQLx crate, run the following in a fresh directory:

nix flake init -t github:ipetkov/crane#sqlx

Alternatively, if you have an existing project already, copy and paste the following flake.nix:

{{#include ../../examples/sqlx/flake.nix}}