foundationdb 0.8.0

High level client bindings for FoundationDB.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate foundationdb_gen;

use std::env;
use std::fs::File;
use std::io::prelude::*;
use std::path::PathBuf;

fn main() {
    let out_path = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR is undefined!"));
    let options_file = out_path.join("options.rs");
    let mut options = String::new();
    foundationdb_gen::emit(&mut options).expect("couldn't emit options.rs code!");

    File::create(options_file)
        .expect("couldn't create options.rs!")
        .write_all(options.as_bytes())
        .expect("couldn't write options.rs!");
}