mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
9e5ed2fc02
Adds a new [.mbtiles](https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md) backend, without the grid support. Uses extensive tile content detection, i.e. if the content is gzipped, png, jpeg, gif, webp. From CLI, can be as easy as adding a path to a directory that contains a .mbtiles file (works just like pmtiles support) ```bash # All *.mbtiles files in this dir will be published. # The filename will be used as the source ID martin ./tests/fixtures ``` From configuration file, the path can be specified in a number of ways (same as pmtiles) ```yaml mbtiles: paths: # scan this whole dir, matching all *.mbtiles files - /dir-path # specific mbtiles file will be published as mbtiles2 source - /path/to/mbtiles2.mbtiles sources: # named source matching source name to a single file pm-src1: /tmp/mbtiles.mbtiles # named source, where the filename is explicitly set. This way we will be able to add more options later pm-src2: path: /tmp/mbtiles.mbtiles ``` Fixes #494
73 lines
1.9 KiB
TOML
73 lines
1.9 KiB
TOML
[workspace]
|
|
default-members = ["martin-tile-utils", "martin-mbtiles", "."]
|
|
members = ["martin-tile-utils", "martin-mbtiles"]
|
|
|
|
[profile.dev.package.sqlx-macros]
|
|
# See https://github.com/launchbadge/sqlx#compile-time-verification
|
|
opt-level = 3
|
|
|
|
[package]
|
|
name = "martin"
|
|
version = "0.7.0-alpha"
|
|
edition = "2021"
|
|
authors = ["Stepan Kuzmin <to.stepan.kuzmin@gmail.com>", "Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
|
|
description = "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
|
|
repository = "https://github.com/maplibre/martin"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
name = "martin"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "martin"
|
|
path = "src/bin/main.rs"
|
|
|
|
[features]
|
|
default = []
|
|
ssl = ["openssl", "postgres-openssl"]
|
|
vendored-openssl = ["ssl", "openssl/vendored"]
|
|
|
|
[dependencies]
|
|
actix = "0.13"
|
|
actix-cors = "0.6"
|
|
actix-http = "3"
|
|
actix-rt = "2"
|
|
actix-web = "4"
|
|
async-trait = "0.1"
|
|
bb8 = "0.8"
|
|
bb8-postgres = "0.8"
|
|
clap = { version = "4", features = ["derive"] }
|
|
flate2 = "1"
|
|
env_logger = "0.10"
|
|
futures = "0.3"
|
|
itertools = "0.10"
|
|
log = "0.4"
|
|
martin-tile-utils = { path = "martin-tile-utils" }
|
|
martin-mbtiles = { path = "martin-mbtiles"}
|
|
num_cpus = "1"
|
|
openssl = { version = "0.10", optional = true }
|
|
pmtiles = { version = "0.2", 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-openssl = { version = "0.5", optional = true }
|
|
postgres-protocol = "0.6"
|
|
semver = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
subst = { version = "0.2", features = ["yaml"] }
|
|
thiserror = "1"
|
|
tilejson = "0.3"
|
|
|
|
[dev-dependencies]
|
|
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
|
|
criterion = { version = "0.4", features = ["async_futures", "async_tokio", "html_reports"] }
|
|
ctor = "0.1"
|
|
indoc = "1"
|
|
#test-log = "0.2"
|
|
|
|
[[bench]]
|
|
name = "sources"
|
|
harness = false
|