Skip to content

Commit

Permalink
upgrade bindgen to 0.5.4 and redismodule-rs to 0.9.2 (#11)
Browse files Browse the repository at this point in the history
* upgrade bindgen to 0.5.4 and redismodule-rs to 0.9.2
* set bindgen size_t_is_usize
  • Loading branch information
gkorland authored May 27, 2020
1 parent 2708d09 commit 7815060
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redisearch_api"
version = "0.4.1"
version = "0.4.2"
authors = ["Gavrie Philipson <[email protected]>", "Guy Korland <[email protected]>"]
edition = "2018"
description = "Rust RediSearch API binding"
Expand All @@ -14,15 +14,15 @@ crate-type = ["cdylib"]


[dependencies]
redis-module = { version="0.9.1", features = ["experimental-api"]}
redis-module = { version="0.9.2", features = ["experimental-api"]}
bitflags = "1.1"
libc = "0.2"
time = "0.1"
enum-primitive-derive = "0.1.2"
num-traits = "0.2.8"

[build-dependencies]
bindgen = "0.51"
bindgen = "0.54"
cmake = "0.1"

[features]
Expand Down
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ fn main() {
.whitelist_var("(RS|RediSearch|REDISEARCH_|GC_POLICY).*")
.whitelist_function("RediSearch.*")
.blacklist_item("RedisModule.*")
.blacklist_type("__darwin_.*")
.size_t_is_usize(true)
.raw_line("use redis_module::raw::{RedisModuleCtx, RedisModuleString};")
.generate()
.expect("error generating RediSearch bindings");
Expand Down
2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl Iterator for ResultsIterator<'_> {
// A null pointer means we have no results.
return None;
}
let mut len = 0usize;
let mut len = 0;
let key = unsafe {
let raw_key =
raw::RediSearch_ResultsIteratorNext(self.inner, self.index.inner, &mut len)
Expand Down

0 comments on commit 7815060

Please sign in to comment.