-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
74 lines (61 loc) · 2.06 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[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 <[email protected]>"]
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
[target.wasm32-unknown-unknown.dependencies]
wasm-bindgen = "0.2"
[target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.2"