Hacker News new | ask | show | jobs
by NiceGuy_Ty 2995 days ago
Are you talking about statically linking the database itself? Seems like it'd be better to keep the database separate from the binary, unless you're working with a read-only database.

For static-linking the sqlite3 library, if you're using rusqlite you can just specify the bundled feature in Cargo.toml.

``` [dependencies.rusqlite] version = "your-version-number" features = ["bundled"] ```

1 comments

Yeah I meant statically linking the sqlite library. Thanks for the tip on how to do it