diff --git a/Cargo.toml b/Cargo.toml index 230989fd..ffd0b83f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sqlite" -version = "0.34.0" +version = "0.35.0" edition = "2021" license = "Apache-2.0 OR MIT" authors = [ @@ -35,11 +35,8 @@ bundled = ["sqlite3-sys/bundled"] extension = [] linkage = ["sqlite3-sys/linkage"] -[dependencies] -libc = "0.2" - [dependencies.sqlite3-sys] -version = "0.16" +version = "0.17" default-features = false [dev-dependencies] diff --git a/src/connection.rs b/src/connection.rs index 0cee7036..b8481a75 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -1,9 +1,8 @@ +use core::ffi::{c_char, c_int, c_void}; use std::marker::PhantomData; use std::ops::{Deref, DerefMut}; use std::path::Path; -use libc::{c_char, c_int, c_void}; - use crate::error::Result; use crate::statement::Statement; diff --git a/src/statement.rs b/src/statement.rs index 7f4a7edb..f244495d 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -1,16 +1,15 @@ +use core::ffi::{c_double, c_int}; use std::collections::HashMap; use std::marker::PhantomData; use std::rc::Rc; -use libc::{c_double, c_int}; - use crate::cursor::{Cursor, CursorWithOwnership, Row}; use crate::error::Result; use crate::value::{Type, Value}; // https://sqlite.org/c3ref/c_static.html macro_rules! transient( - () => (std::mem::transmute(!0 as *const libc::c_void)); + () => (std::mem::transmute(!0 as *const core::ffi::c_void)); ); /// A prepared statement.