Merge pull request #264 from gwenn/outdated

Upgrade outdated dependencies
This commit is contained in:
John Gallagher 2017-05-29 10:11:09 -04:00 committed by GitHub
commit b7ce75b463
3 changed files with 6 additions and 6 deletions

View File

@ -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"

View File

@ -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 }

View File

@ -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))