sqlite-tiny 0.7.7

A minimalistic SQLite crate which ships the amalgamation variant and provides a tiny Rust API
Documentation
use cc::Build;

fn main() {
    // Rerun if one of the amalgamation files changed
    println!("cargo:rerun-if-changed=dist/sqlite3.c");
    println!("cargo:rerun-if-changed=dist/sqlite3.h");

    // Build SQLite
    let mut builder = Build::new();
    builder.extra_warnings(true);

    // SQLite causes some warnings in some configurations
    #[cfg(feature = "sqlite-warningsintoerrors")]
    builder.warnings_into_errors(true);

    // Recommended flags; see https://www.sqlite.org/compile.html
    builder.flag("-DSQLITE_DQS=0");
    builder.flag("-DSQLITE_DEFAULT_MEMSTATUS=0");
    builder.flag("-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1");
    builder.flag("-DSQLITE_OMIT_DEPRECATED=1");
    builder.flag("-DSQLITE_OMIT_SHARED_CACHE=1");
    builder.flag("-DSQLITE_STRICT_SUBTYPE=1");

    // Register source files
    builder.include("dist/");
    builder.file("dist/sqlite3.c");
    builder.file("src/ffi/glue.c");

    // Compile static library
    builder.compile("libsqlite3.a");
}