-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
60 lines (54 loc) · 2 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
[package]
name = "osm-geo-mapper"
version = "0.8.0"
authors = ["Edouard Poitras <edouardpoitras@gmail.com>"]
edition = "2018"
license = "MIT"
readme = "README.md"
repository = "https://github.com/edouardpoitras/osm-geo-mapper"
homepage = "https://crates.io/crates/osm-geo-mapper"
description = """
Library to easily access OpenStreetMap data using world lat/lon coordinates.
Can also be used to navigate OpenStreetMap data in the terminal.
"""
keywords = ["openstreetmap", "osm", "pbf", "geojson"]
include = ["src/", "LICENSE", "README.md"]
[lib]
name = "osm_geo_mapper"
path = "src/lib.rs"
[[bin]]
name = "osm-geo-mapper"
path = "src/main.rs"
[profile.release]
#debug = true # Generate debug symbols so we can profile the code and use tools like flamegraph.
# Sacrifice compile time and execution speed to generate smaller binary size (can get from ~11MB to ~1MB as of June 2021):
#opt-level = 'z' # Optimize for size.
codegen-units = 1 # Reduce parallel code generation units to increase potential size optimizations - 11MB to 8MB as of June 2021.
lto = true # Enable link time optimization which can remove binary bloat - 8MB to 6MB as of June 2021.
# Other options:
# 1) Use the strip command post-build to strip out unnecessary symbols - Saves ~35% binary size as of June 2021.
# 2) Use the upx command to pack the binary - Saves ~65% binary size as of June 2021.
[dependencies]
crossterm = "0.18.2"
geo = "0.14.0"
geojson = { version = "0.19.0", features = ["geo-types"] }
geo-types = "0.6.0"
log = "0.4.8"
log4rs = "0.13.0"
noise = "0.6.0"
osmpbfreader = "0.13.4"
osm-geo-mapper-macros = "0.3.0"
osm-xml = "0.6.2"
paste = "1.0.4"
reqwest = { version = "0.10.6", features = ["json", "blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
structopt = "0.3.15"
tui = { version = "0.13.0", default-features = false, features = ["crossterm"] }
uuid = { version = "0.8.1", features = ["v4"] }
[dev-dependencies]
criterion = "0.3.3"
[[bench]]
name = "operations"
path = "benches/operations.rs"
harness = false