Skip to content

Commit

Permalink
Update sqlite3-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Apr 21, 2024
1 parent 3af6e95 commit 3f29669
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqlite"
version = "0.34.0"
version = "0.35.0"
edition = "2021"
license = "Apache-2.0 OR MIT"
authors = [
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions src/connection.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
5 changes: 2 additions & 3 deletions src/statement.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3f29669

Please sign in to comment.