redis_module/redisraw/mod.rs
1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(dead_code)]
5
6// Workaround for https://github.com/rust-lang/rust-bindgen/issues/1651#issuecomment-848479168
7#[allow(deref_nullptr)]
8pub mod bindings {
9 #![expect(
10 clippy::missing_safety_doc,
11 reason = "The `RedisModuleSlotRangeArray` has an array field. And bindgen will try to generate an unsafe `as_slice()` method for this array."
12 )]
13 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
14}
15
16// See: https://users.rust-lang.org/t/bindgen-generate-options-and-some-are-none/14027