mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
f88fd10aa8
This adds a new utility called `martin-cp` that allows copying any number of tiles from a single source (or a composite source) to an mbtiles file. `martin-cp` is a tool for generating tiles in bulk, and save retrieved tiles into a new or an existing MBTiles file. It can be used to generate tiles for a large area or multiple areas. If multiple areas overlap, it will generate tiles only once. `martin-cp` supports the same configuration file and CLI arguments as Martin server, so it can support all sources and even combining sources.
93 lines
2.9 KiB
TOML
93 lines
2.9 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["martin", "martin-tile-utils", "mbtiles"]
|
|
|
|
[workspace.package]
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/maplibre/martin"
|
|
rust-version = "1.65"
|
|
readme = "README.md"
|
|
homepage = "https://martin.maplibre.org/"
|
|
|
|
[workspace.lints.rust]
|
|
unused_qualifications = "warn"
|
|
# Lints inheritance from workspace is not yet supported
|
|
# Crate mbtiles uses unsafe code, so we can't forbid it here
|
|
# unsafe_code = "forbid"
|
|
|
|
[workspace.lints.clippy]
|
|
pedantic = { level = "warn", priority = -1 }
|
|
derive_partial_eq_without_eq = "allow"
|
|
implicit_hasher = "allow"
|
|
missing_errors_doc = "allow"
|
|
missing_panics_doc = "allow"
|
|
module_name_repetitions = "allow"
|
|
|
|
[workspace.dependencies]
|
|
actix-cors = "0.6"
|
|
actix-http = "3"
|
|
actix-rt = "2"
|
|
actix-web = "4"
|
|
anyhow = "1.0"
|
|
approx = "0.5.1"
|
|
async-trait = "0.1"
|
|
bit-set = "0.5.3"
|
|
brotli = "3"
|
|
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
|
|
clap = { version = "4", features = ["derive"] }
|
|
criterion = { version = "0.5", features = ["async_futures", "async_tokio", "html_reports"] }
|
|
ctor = "0.2"
|
|
deadpool-postgres = "0.11"
|
|
enum-display = "0.1"
|
|
env_logger = "0.10"
|
|
flate2 = "1"
|
|
futures = "0.3"
|
|
indoc = "2"
|
|
insta = "1"
|
|
itertools = "0.12"
|
|
json-patch = "1.2"
|
|
log = "0.4"
|
|
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
|
|
mbtiles = { path = "./mbtiles", version = "0.7.0" }
|
|
num_cpus = "1"
|
|
pbf_font_tools = { version = "2.5.0", features = ["freetype"] }
|
|
pmtiles = { version = "0.5", features = ["mmap-async-tokio", "tilejson"] }
|
|
postgis = "0.9"
|
|
postgres = { version = "0.19", features = ["with-time-0_3", "with-uuid-1", "with-serde_json-1"] }
|
|
postgres-protocol = "0.6"
|
|
pretty_assertions = "1"
|
|
regex = "1"
|
|
rstest = "0.18"
|
|
rustls = { version = "0.21", features = ["dangerous_configuration"] }
|
|
rustls-native-certs = "0.6"
|
|
rustls-pemfile = "1"
|
|
semver = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_with = "3"
|
|
serde_yaml = "0.9"
|
|
size_format = "1.0.2"
|
|
spreet = { version = "0.9", default-features = false }
|
|
sqlite-hashes = { version = "0.5", default-features = false, features = ["md5", "window", "hex"] }
|
|
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio"] }
|
|
subst = { version = "0.3", features = ["yaml"] }
|
|
thiserror = "1"
|
|
tilejson = "0.4"
|
|
tokio = { version = "1", features = ["macros"] }
|
|
tokio-postgres-rustls = "0.10"
|
|
|
|
[profile.dev.package]
|
|
# See https://github.com/launchbadge/sqlx#compile-time-verification
|
|
sqlx-macros.opt-level = 3
|
|
# See https://docs.rs/insta/latest/insta/#optional-faster-runs
|
|
insta.opt-level = 3
|
|
similar.opt-level = 3
|
|
|
|
[patch.crates-io]
|
|
#pmtiles = { path = "../pmtiles-rs" }
|
|
#sqlite-hashes = { path = "../sqlite-hashes" }
|
|
#tilejson = { path = "../tilejson" }
|
|
#pmtiles = { git = "https://github.com/nyurik/pmtiles-rs", branch = "override" }
|
|
#tilejson = { git = "https://github.com/nyurik/tilejson", branch = "btreemap" }
|