xdrfile 0.3.0

Wrapper around the gromacs libxdrfile library. Can be used to read and write gromacs trajectories in xtc and trr format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate cc;

use std::fs;
use std::io::Result;

fn main() -> Result<()> {
    // This builds gromacs' xdrfile library
    let source_files = fs::read_dir("external/xdrfile/src")?
        .map(|r| r.map(|f| f.path()))
        .collect::<Result<Vec<_>>>()?;
    cc::Build::new()
        .files(source_files)
        .include("external/xdrfile/include")
        .warnings(false)
        .compile("libxdrfile.a");
    Ok(())
}