sqlite3mc_src/lib.rs
1#![doc = include_str!("../README.md")]
2
3use std::path::Path;
4
5/// SQLite3 Multiple Ciphers release the vendored amalgamation comes from.
6pub const SQLITE3MC_VERSION: &str = "2.5.1";
7
8/// SQLite release that amalgamation wraps.
9pub const SQLITE_VERSION: &str = "3.53.4";
10
11/// Amalgamation source inside [`source_dir`], under its upstream name.
12pub const SOURCE_FILE: &str = "sqlite3mc_amalgamation.c";
13
14/// Amalgamation header inside [`source_dir`], under its upstream name.
15pub const HEADER_FILE: &str = "sqlite3mc_amalgamation.h";
16
17/// SQLite's extension header from the same release, inside [`source_dir`].
18pub const EXTENSION_HEADER_FILE: &str = "sqlite3ext.h";
19
20/// Directory holding the release files byte for byte, for a consumer's build script to compile.
21#[must_use]
22pub fn source_dir() -> &'static Path {
23 Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/sqlite3mc"))
24}