Skip to content

Commit

Permalink
sqlite3: Fix LFS feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
penberg committed Aug 22, 2024
1 parent 20b3ff1 commit 6209308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions sqlite3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ edition.workspace = true
license.workspace = true
repository.workspace = true

[features]
lfs = []

[package.metadata.dist]
dist = true

Expand Down
4 changes: 2 additions & 2 deletions sqlite3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,9 @@ fn sqlite3_errstr_impl(rc: i32) -> *const std::ffi::c_char {
"constraint failed", // SQLITE_CONSTRAINT
"datatype mismatch", // SQLITE_MISMATCH
"bad parameter or other API misuse", // SQLITE_MISUSE
#[cfg(not(feature = "SQLITE_DISABLE_LFS"))]
#[cfg(feature = "lfs")]
"", // SQLITE_NOLFS
#[cfg(feature = "SQLITE_DISABLE_LFS")]
#[cfg(not(feature = "lfs"))]
"large file support is disabled", // SQLITE_NOLFS
"authorization denied", // SQLITE_AUTH
"", // SQLITE_FORMAT
Expand Down

0 comments on commit 6209308

Please sign in to comment.