File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " redisearch_api"
3- version = " 0.4.1 "
3+ version = " 0.4.2 "
44authors = [" Gavrie Philipson <gavrie@redislabs.com>" , " Guy Korland <guy.korland@redislabs.com>" ]
55edition = " 2018"
66description = " Rust RediSearch API binding"
@@ -14,15 +14,15 @@ crate-type = ["cdylib"]
1414
1515
1616[dependencies ]
17- redis-module = { version =" 0.9.1 " , features = [" experimental-api" ]}
17+ redis-module = { version =" 0.9.2 " , features = [" experimental-api" ]}
1818bitflags = " 1.1"
1919libc = " 0.2"
2020time = " 0.1"
2121enum-primitive-derive = " 0.1.2"
2222num-traits = " 0.2.8"
2323
2424[build-dependencies ]
25- bindgen = " 0.51 "
25+ bindgen = " 0.54 "
2626cmake = " 0.1"
2727
2828[features ]
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ fn main() {
1313 . whitelist_var ( "(RS|RediSearch|REDISEARCH_|GC_POLICY).*" )
1414 . whitelist_function ( "RediSearch.*" )
1515 . blacklist_item ( "RedisModule.*" )
16+ . blacklist_type ( "__darwin_.*" )
17+ . size_t_is_usize ( true )
1618 . raw_line ( "use redis_module::raw::{RedisModuleCtx, RedisModuleString};" )
1719 . generate ( )
1820 . expect ( "error generating RediSearch bindings" ) ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ impl Iterator for ResultsIterator<'_> {
172172 // A null pointer means we have no results.
173173 return None ;
174174 }
175- let mut len = 0usize ;
175+ let mut len = 0 ;
176176 let key = unsafe {
177177 let raw_key =
178178 raw:: RediSearch_ResultsIteratorNext ( self . inner , self . index . inner , & mut len)
You can’t perform that action at this time.
0 commit comments