mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 06:00:33 +08:00
Tweak bindgen
This commit is contained in:
parent
c8beed54f3
commit
518f0195df
@ -487,8 +487,7 @@ mod bindings {
|
||||
use super::HeaderLocation;
|
||||
use bindgen::callbacks::{IntKind, ParseCallbacks};
|
||||
|
||||
use std::fs::OpenOptions;
|
||||
use std::io::Write;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
|
||||
use super::win_target;
|
||||
@ -625,10 +624,7 @@ mod bindings {
|
||||
.blocklist_function("sqlite3_vsnprintf")
|
||||
.blocklist_function("sqlite3_str_vappendf")
|
||||
.blocklist_type("va_list")
|
||||
.blocklist_type("__builtin_va_list")
|
||||
.blocklist_type("__gnuc_va_list")
|
||||
.blocklist_type("__va_list_tag")
|
||||
.blocklist_item("__GNUC_VA_LIST");
|
||||
.blocklist_item("__.*");
|
||||
}
|
||||
|
||||
bindings
|
||||
@ -649,14 +645,7 @@ mod bindings {
|
||||
output.push_str("\npub const SQLITE_DETERMINISTIC: i32 = 2048;\n");
|
||||
}
|
||||
|
||||
let mut file = OpenOptions::new()
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.create(true)
|
||||
.open(out_path)
|
||||
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
|
||||
|
||||
file.write_all(output.as_bytes())
|
||||
fs::write(out_path, output.as_bytes())
|
||||
.unwrap_or_else(|_| panic!("Could not write to {:?}", out_path));
|
||||
}
|
||||
}
|
||||
|
@ -2881,7 +2881,6 @@ pub struct sqlite3_rtree_query_info {
|
||||
pub const NOT_WITHIN: i32 = 0;
|
||||
pub const PARTLY_WITHIN: i32 = 1;
|
||||
pub const FULLY_WITHIN: i32 = 2;
|
||||
pub const __SQLITESESSION_H_: i32 = 1;
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct sqlite3_session {
|
||||
|
Loading…
Reference in New Issue
Block a user