terrio 0.4.2

Pure-Rust geospatial raster, vector and point cloud data I/O: read, write, convert and reproject GIS formats without C dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
//! Sets `cfg(remote)`: the `remote` feature on a target with a network stack (not WebAssembly),
//! where terrio reads URLs and object stores.

fn main() {
    println!("cargo::rustc-check-cfg=cfg(remote)");
    let wasm = std::env::var("CARGO_CFG_TARGET_ARCH").is_ok_and(|arch| arch == "wasm32");
    if std::env::var_os("CARGO_FEATURE_REMOTE").is_some() && !wasm {
        println!("cargo::rustc-cfg=remote");
    }
}