How to use SQLite with Rust

Embed SQLite in Rust by adding the diesel crate with sqlite and libsqlite3-sys/bundled features to Cargo.toml.

Use the diesel crate with the sqlite and libsqlite3-sys/bundled features to embed SQLite directly into your Rust binary without external dependencies.

[dependencies]
diesel = { version = "2.2", features = ["sqlite", "libsqlite3-sys/bundled"] }

This configuration compiles the SQLite library as part of your build process, ensuring a self-contained executable.