Skip to content

Commit e14762d

Browse files
committed
add libsql-disable-checkpoint-downgrade cargo feature in libsql-ffi crate
1 parent 628ccee commit e14762d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libsql-ffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ sqlean-extensions = [
4343
"sqlean-extension-stats",
4444
"sqlean-extension-text"
4545
]
46+
libsql-disable-checkpoint-downgrade = []

libsql-ffi/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
281281
cfg.flag("-DLIBSQL_ENABLE_WASM_RUNTIME=1");
282282
}
283283

284+
if cfg!(feature = "libsql-disable-checkpoint-downgrade") {
285+
cfg.flag("-DLIBSQL_DISABLE_CHECKPOINT_DOWNGRADE=1");
286+
}
287+
284288
if cfg!(feature = "bundled-sqlcipher") {
285289
cfg.flag("-DSQLITE_HAS_CODEC").flag("-DSQLITE_TEMP_STORE=2");
286290

0 commit comments

Comments
 (0)