Serde support for redis-rs
Latest commit 7e5bf90 Dec 16, 2016 @jwilm jwilm Use serde_derive instead of serde_macros
Also makes it a dev-dependency


Build Status Documentation Version

serde serialization and deserialization of redis-rs values


  • Deserialization: Everything should work.
  • Serialization: unimplemented


This crate gives you automatic deserialization of values returned from redis-rs.

use serde_redis::RedisDeserialize;

#[derive(Debug, Deserialize, PartialEq)]
struct Simple {
    a: String,
    b: String,

let s: Simple = redis.hgetall("simple_hash")?

Future work

  • Work at the redis protocol level instead of redis::Value type.
  • Merge into redis-rs?


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.