cdrs 2.3.3

Cassandra DB driver written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
macro_rules! fixture {
    ($fxt:expr) => {
        {
            use std::fs::File;
            use std::path::Path;
            use std::io::Read;
            File::open(Path::new("./fixtures").join($fxt).as_path()).map(|mut f| {
                let mut bytes = vec![];
                f.read_to_end(&mut bytes).unwrap();
                bytes
            })
        }
    }
}