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