Skip to main content

sqlcipher_src/
lib.rs

1#![doc = include_str!("../README.md")]
2
3use std::path::Path;
4
5/// SQLCipher release the vendored amalgamation is generated from.
6pub const SQLCIPHER_VERSION: &str = "4.19.0";
7
8/// SQLite release that SQLCipher release is based on.
9pub const SQLITE_VERSION: &str = "3.53.4";
10
11/// libtomcrypt release providing the ciphers, hashes and random generator.
12pub const LIBTOMCRYPT_VERSION: &str = "1.18.2";
13
14/// SQLCipher amalgamation inside [`source_dir`], with the crypto provider left to the build.
15pub const SOURCE_FILE: &str = "sqlcipher.c";
16
17/// Public SQLCipher header inside [`source_dir`].
18pub const HEADER_FILE: &str = "sqlite3.h";
19
20/// Directory holding the sources, at the path this crate was compiled from.
21#[must_use]
22pub fn source_dir() -> &'static Path {
23    Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/sqlcipher"))
24}