mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-04-21 07:02:13 +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"
|
homepage = "https://github.com/stainless-steel/sqlite"
|
||||||
documentation = "https://stainless-steel.github.io/sqlite"
|
documentation = "https://stainless-steel.github.io/sqlite"
|
||||||
description = "The package provides an interface to SQLite."
|
description = "The package provides an interface to SQLite."
|
||||||
|
build = "build.rs"
|
||||||
[features]
|
|
||||||
edge = ["sqlite3-sys/edge"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = "*"
|
libc = "*"
|
||||||
sqlite3-sys = "*"
|
sqlite3-sys = "0.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
temporary = "*"
|
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> {
|
impl<'l> Drop for Connection<'l> {
|
||||||
#[cfg(not(feature = "edge"))]
|
#[cfg(not(feature = "sqlite3-close-v2"))]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
@ -108,7 +108,7 @@ impl<'l> Drop for Connection<'l> {
|
|||||||
unsafe { ffi::sqlite3_close(self.raw) };
|
unsafe { ffi::sqlite3_close(self.raw) };
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "edge")]
|
#[cfg(feature = "sqlite3-close-v2")]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user