redis-cell 0.2.2

A Redis module that provides rate limiting in Redis as a single command.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate gcc;

fn main() {
    // Build a Redis pseudo-library so that we have symbols that we can link
    // against while building Rust code.
    //
    // include/redismodule.h is just vendored in from the Redis project and
    // src/redismodule.c is just a stub that includes it and plays a few other
    // tricks that we need to complete the build.
    gcc::Build::new()
        .file("src/redismodule.c")
        .include("include/")
        .compile("libredismodule.a");
    // The GCC module emits `rustc-link-lib=static=redismodule` for us.
}