postgres_macros 0.0.7

A set of support macros for rust-postgres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(io, env)]

use std::old_io::Command;
use std::old_io::process::StdioContainer::InheritFd;
use std::env;

fn main() {
    Command::new("make")
        .stdin(InheritFd(0))
        .stdout(InheritFd(1))
        .stderr(InheritFd(2))
        .status()
        .unwrap();
    let out_dir = env::var("OUT_DIR").unwrap();
    println!("cargo:rustc-flags=-L {} -l parser:static", out_dir);
}