Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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