lonlat_bng 0.8.1

Convert longitude and latitude coordinates to BNG coordinates, and vice versa
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate cbindgen;

use std::env;

fn write_headers() {
    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
    let config = cbindgen::Config::from_file("cbindgen.toml").unwrap();

    cbindgen::generate_with_config(crate_dir, config)
        .expect("Unable to generate bindings")
        .write_to_file("include/header.h");
}

fn main() {
    write_headers();
}