[package] name = "geodesy" description = "A platform for experiments with geodetic transformations and data flow" keywords = ["geospatial", "geodesy", "cartography", "geography"] categories = ["science"] license = "MIT OR Apache-2.0" version = "0.13.0" rust-version = "1.70" authors = ["Thomas Knudsen "] readme = "README.md" repository = "https://github.com/busstoptaktik/geodesy/" edition = "2021" default-run = "kp" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] # Library functionality uuid = { version = "1.8.0", features = ["v4"] } # Command line program helpers clap = { version = "4.5.0", features = ["derive"], optional = true } clap-verbosity-flag = { version = "2.2.0", optional = true } anyhow = { version = "1.0.0", optional = true } # CLI + plain dirs = { version = "5.0.0", optional = true } env_logger = { version = "0.11.3", optional = true } # Library level logging and error handling log = "0.4" thiserror = "1.0.50" float_eq = "1.0.0" [dev-dependencies] # Needed for building doc-tests anyhow = { version = "1.0.75" } clap = { version = "4.5.0", features = ["derive"] } # Needed for building examples dirs = { version = "5.0.1" } env_logger = { version = "0.11.3" } [lib] name = "geodesy" # Needed for Wasm: # wasm-pack build --target web --no-default-features --features js crate-type = ["cdylib", "rlib"] [features] js = ["uuid/js"] binary = ["dirs", "clap", "clap-verbosity-flag", "env_logger", "anyhow"] with_plain = ["dirs"] default = ["binary", "with_plain"] [[bin]] name = "kp" required-features = ["binary"] # Invocation example: # echo 55 12 | cargo run --features binary --bin kp -- "geo:in | utm zone=33" # or (since kp is set as the default-run) # echo 55 12 | cargo run --features binary -- "geo:in | utm zone=33" # Build example # cargo b --bin kp --features=with_plain,binary [profile.release] lto = true strip = true # Automatically strip symbols from the binary. [target.wasm32-unknown-unknown.dependencies] wasm-bindgen = "0.2" [target.wasm32-unknown-unknown.dev-dependencies] wasm-bindgen-test = "0.2"