mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Merge pull request #264 from gwenn/outdated
Upgrade outdated dependencies
This commit is contained in:
commit
b7ce75b463
@ -29,10 +29,10 @@ limits = []
|
||||
|
||||
[dependencies]
|
||||
time = "0.1.0"
|
||||
bitflags = "0.7"
|
||||
bitflags = "0.8"
|
||||
lru-cache = "0.1.0"
|
||||
chrono = { version = "0.3", optional = true }
|
||||
serde_json = { version = "0.9", optional = true }
|
||||
serde_json = { version = "1.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3.4"
|
||||
|
@ -22,6 +22,6 @@ min_sqlite_version_3_7_4 = ["pkg-config"]
|
||||
min_sqlite_version_3_7_16 = ["pkg-config"]
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = { version = "0.21", optional = true }
|
||||
bindgen = { version = "0.23", optional = true }
|
||||
pkg-config = { version = "0.3", optional = true }
|
||||
gcc = { version = "0.3", optional = true }
|
||||
|
@ -140,7 +140,7 @@ mod build {
|
||||
mod bindings {
|
||||
extern crate bindgen;
|
||||
|
||||
use self::bindgen::chooser::{TypeChooser, IntKind};
|
||||
use self::bindgen::callbacks::{ParseCallbacks, IntKind};
|
||||
use super::HeaderLocation;
|
||||
|
||||
use std::env;
|
||||
@ -151,7 +151,7 @@ mod build {
|
||||
#[derive(Debug)]
|
||||
struct SqliteTypeChooser;
|
||||
|
||||
impl TypeChooser for SqliteTypeChooser {
|
||||
impl ParseCallbacks for SqliteTypeChooser {
|
||||
fn int_macro(&self, _name: &str, value: i64) -> Option<IntKind> {
|
||||
if value >= i32::min_value() as i64 && value <= i32::max_value() as i64 {
|
||||
Some(IntKind::I32)
|
||||
@ -167,7 +167,7 @@ mod build {
|
||||
let mut output = Vec::new();
|
||||
bindgen::builder()
|
||||
.header(header.clone())
|
||||
.type_chooser(Box::new(SqliteTypeChooser))
|
||||
.parse_callbacks(Box::new(SqliteTypeChooser))
|
||||
.generate()
|
||||
.expect(&format!("could not run bindgen on header {}", header))
|
||||
.write(Box::new(&mut output))
|
||||
|
Loading…
Reference in New Issue
Block a user