mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Update sqlite3-sys
This commit is contained in:
parent
dc85cb98ff
commit
2275f8157f
@ -7,13 +7,11 @@ repository = "https://github.com/stainless-steel/sqlite"
|
||||
homepage = "https://github.com/stainless-steel/sqlite"
|
||||
documentation = "https://stainless-steel.github.io/sqlite"
|
||||
description = "The package provides an interface to SQLite."
|
||||
|
||||
[features]
|
||||
edge = ["sqlite3-sys/edge"]
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
libc = "*"
|
||||
sqlite3-sys = "*"
|
||||
sqlite3-sys = "0.6"
|
||||
|
||||
[dev-dependencies]
|
||||
temporary = "*"
|
||||
|
9
build.rs
Normal file
9
build.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
if let Ok(features) = env::var("DEP_SQLITE3_FEATURES") {
|
||||
for feature in features.split(' ') {
|
||||
println!(r#"cargo:rustc-cfg=feature="{}""#, feature);
|
||||
}
|
||||
}
|
||||
}
|
@ -100,7 +100,7 @@ impl<'l> Connection<'l> {
|
||||
}
|
||||
|
||||
impl<'l> Drop for Connection<'l> {
|
||||
#[cfg(not(feature = "edge"))]
|
||||
#[cfg(not(feature = "sqlite3-close-v2"))]
|
||||
#[inline]
|
||||
#[allow(unused_must_use)]
|
||||
fn drop(&mut self) {
|
||||
@ -108,7 +108,7 @@ impl<'l> Drop for Connection<'l> {
|
||||
unsafe { ffi::sqlite3_close(self.raw) };
|
||||
}
|
||||
|
||||
#[cfg(feature = "edge")]
|
||||
#[cfg(feature = "sqlite3-close-v2")]
|
||||
#[inline]
|
||||
#[allow(unused_must_use)]
|
||||
fn drop(&mut self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user