mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
720b682b7e
* Add `MbtType::FlatWithHash` * Support copying, diffing and applying diffs to and from any `MbtTypes`s * Support validating tile data if hash is contained in `*.mbtiles` file (i.e it is of `MbtType::FlatWithHash` or `MbtType::Normalized`) --------- Co-authored-by: rstanciu <rstanciu@rivian.com> Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
46 lines
1.3 KiB
TOML
46 lines
1.3 KiB
TOML
[package]
|
|
name = "martin-mbtiles"
|
|
version = "0.4.0"
|
|
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
|
|
description = "A simple low-level MbTiles access and processing library, with some tile format detection and other relevant heuristics."
|
|
keywords = ["mbtiles", "maps", "tiles", "mvt", "tilejson"]
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[features]
|
|
# TODO: Disable "cli" feature in default builds
|
|
default = ["cli", "native-tls"]
|
|
cli = ["dep:anyhow", "dep:clap", "dep:tokio"]
|
|
# One of the following two must be used
|
|
native-tls = ["sqlx/runtime-tokio-native-tls"]
|
|
rustls = ["sqlx/runtime-tokio-rustls"]
|
|
|
|
[dependencies]
|
|
futures.workspace = true
|
|
log.workspace = true
|
|
martin-tile-utils.workspace = true
|
|
serde_json.workspace = true
|
|
sqlx.workspace = true
|
|
thiserror.workspace = true
|
|
tilejson.workspace = true
|
|
|
|
# Bin dependencies
|
|
anyhow = { workspace = true, optional = true }
|
|
clap = { workspace = true, optional = true }
|
|
sqlite-hashes.workspace = true
|
|
tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
# For testing, might as well use the same async framework as the Martin itself
|
|
actix-rt.workspace = true
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "mbtiles"
|
|
path = "src/bin/main.rs"
|
|
required-features = ["cli"]
|