polylabel 3.2.0

A Rust implementation of the Polylabel algorithm for finding optimum polygon label positions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "cbindgen")]
fn main() {
    use std::env;

    let config = cbindgen::Config::from_file("cbindgen.toml").unwrap();

    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
    cbindgen::generate_with_config(&crate_dir, config)
        .expect("Unable to generate bindings")
        .write_to_file("include/header.h");
}

#[cfg(not(feature = "cbindgen"))]
fn main() { }