We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test
1 parent f907c79 commit b736250Copy full SHA for b736250
src/lib.rs
@@ -28,7 +28,10 @@ mod key;
28
pub use crate::context::Context;
29
pub use crate::redismodule::*;
30
31
-#[cfg(not(test))]
+/// Ideally this would be `#[cfg(not(test))]`, but that doesn't work:
32
+/// https://github.com/rust-lang/rust/issues/59168#issuecomment-472653680
33
+/// The workaround is to use the `test` feature instead.
34
+#[cfg(not(feature = "test"))]
35
#[global_allocator]
36
static ALLOC: crate::alloc::RedisAlloc = crate::alloc::RedisAlloc;
37
0 commit comments