2017-09-30 13:55:44 +03:00
|
|
|
[package]
|
2018-01-16 15:55:05 +03:00
|
|
|
name = "martin"
|
2023-05-25 19:01:35 +03:00
|
|
|
version = "0.8.4"
|
2022-10-07 20:58:30 +03:00
|
|
|
authors = ["Stepan Kuzmin <to.stepan.kuzmin@gmail.com>", "Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
|
Add .mbtiles support (#549)
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
2023-01-09 08:10:23 +03:00
|
|
|
description = "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
|
2023-03-25 21:48:28 +03:00
|
|
|
keywords = ["maps", "tiles", "mbtiles", "pmtiles", "postgis"]
|
2023-03-25 21:37:42 +03:00
|
|
|
exclude = [
|
|
|
|
# Tests include a lot of data and other test files that are not needed for the users of the library
|
|
|
|
"/tests",
|
|
|
|
]
|
2023-06-01 17:13:20 +03:00
|
|
|
default-run = "martin"
|
2023-06-01 16:05:06 +03:00
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
license.workspace = true
|
2019-10-26 20:37:49 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "martin"
|
|
|
|
path = "src/bin/main.rs"
|
2017-09-30 13:55:44 +03:00
|
|
|
|
2022-10-07 16:22:32 +03:00
|
|
|
[features]
|
2022-12-13 13:02:38 +03:00
|
|
|
default = []
|
2022-11-19 17:50:27 +03:00
|
|
|
ssl = ["openssl", "postgres-openssl"]
|
|
|
|
vendored-openssl = ["ssl", "openssl/vendored"]
|
2022-10-07 16:22:32 +03:00
|
|
|
|
2017-09-30 13:55:44 +03:00
|
|
|
[dependencies]
|
2023-06-01 16:05:06 +03:00
|
|
|
actix.workspace = true
|
|
|
|
actix-cors.workspace = true
|
|
|
|
actix-http.workspace = true
|
|
|
|
actix-rt.workspace = true
|
|
|
|
actix-web.workspace = true
|
|
|
|
async-trait.workspace = true
|
|
|
|
brotli.workspace = true
|
|
|
|
clap.workspace = true
|
|
|
|
deadpool-postgres.workspace = true
|
|
|
|
env_logger.workspace = true
|
|
|
|
flate2.workspace = true
|
|
|
|
futures.workspace = true
|
|
|
|
itertools.workspace = true
|
|
|
|
log.workspace = true
|
|
|
|
martin-mbtiles = { path = "./martin-mbtiles", version = "0.1.0" }
|
|
|
|
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
|
|
|
|
num_cpus.workspace = true
|
|
|
|
openssl = { workspace = true, optional = true }
|
|
|
|
pmtiles.workspace = true
|
|
|
|
postgis.workspace = true
|
|
|
|
postgres.workspace = true
|
|
|
|
postgres-openssl = { workspace = true, optional = true }
|
|
|
|
postgres-protocol.workspace = true
|
|
|
|
regex.workspace = true
|
|
|
|
semver.workspace = true
|
|
|
|
serde.workspace = true
|
|
|
|
serde_json = { workspace = true, features = ["preserve_order"] }
|
|
|
|
serde_yaml.workspace = true
|
|
|
|
subst.workspace = true
|
|
|
|
thiserror.workspace = true
|
|
|
|
tilejson.workspace = true
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
cargo-husky.workspace = true
|
|
|
|
criterion.workspace = true
|
|
|
|
ctor.workspace = true
|
|
|
|
indoc.workspace = true
|
|
|
|
#test-log = "0.2"
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "sources"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[profile.dev.package.sqlx-macros]
|
|
|
|
# See https://github.com/launchbadge/sqlx#compile-time-verification
|
|
|
|
opt-level = 3
|
|
|
|
|
|
|
|
[workspace]
|
|
|
|
default-members = ["martin-tile-utils", "martin-mbtiles", "."]
|
|
|
|
members = ["martin-tile-utils", "martin-mbtiles"]
|
|
|
|
|
|
|
|
[workspace.package]
|
|
|
|
edition = "2021"
|
|
|
|
rust-version = "1.65"
|
|
|
|
repository = "https://github.com/maplibre/martin"
|
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
2022-08-15 16:54:48 +03:00
|
|
|
actix = "0.13"
|
|
|
|
actix-cors = "0.6"
|
|
|
|
actix-http = "3"
|
|
|
|
actix-rt = "2"
|
|
|
|
actix-web = "4"
|
2023-06-03 03:40:22 +03:00
|
|
|
anyhow = "1.0"
|
2022-08-15 16:54:48 +03:00
|
|
|
async-trait = "0.1"
|
2023-02-20 18:44:22 +03:00
|
|
|
brotli = "3"
|
2023-06-01 16:05:06 +03:00
|
|
|
cargo-husky = { version = "1", features = ["user-hooks"], default-features = false }
|
2022-10-01 10:48:11 +03:00
|
|
|
clap = { version = "4", features = ["derive"] }
|
2023-06-01 16:05:06 +03:00
|
|
|
criterion = { version = "0.5", features = ["async_futures", "async_tokio", "html_reports"] }
|
|
|
|
ctor = "0.2"
|
2023-02-08 19:55:37 +03:00
|
|
|
deadpool-postgres = "0.10"
|
2022-11-27 05:34:49 +03:00
|
|
|
env_logger = "0.10"
|
2023-02-08 19:55:37 +03:00
|
|
|
flate2 = "1"
|
2022-11-26 12:46:40 +03:00
|
|
|
futures = "0.3"
|
2023-06-01 16:05:06 +03:00
|
|
|
indoc = "2"
|
2021-07-16 16:08:46 +03:00
|
|
|
itertools = "0.10"
|
2018-03-26 14:12:43 +03:00
|
|
|
log = "0.4"
|
2022-08-15 16:54:48 +03:00
|
|
|
num_cpus = "1"
|
2023-06-01 16:05:06 +03:00
|
|
|
openssl = "0.10"
|
2023-05-25 19:01:35 +03:00
|
|
|
pmtiles = { version = "0.2.2", features = ["mmap-async-tokio", "tilejson"] }
|
2022-08-15 16:54:48 +03:00
|
|
|
postgis = "0.9"
|
2022-09-13 09:18:01 +03:00
|
|
|
postgres = { version = "0.19", features = ["with-time-0_3", "with-uuid-1", "with-serde_json-1"] }
|
2023-06-01 16:05:06 +03:00
|
|
|
postgres-openssl = "0.5"
|
2022-08-15 16:54:48 +03:00
|
|
|
postgres-protocol = "0.6"
|
2023-02-06 22:32:28 +03:00
|
|
|
regex = "1"
|
2022-08-15 16:54:48 +03:00
|
|
|
semver = "1"
|
2022-10-31 23:28:21 +03:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
2023-06-01 16:05:06 +03:00
|
|
|
serde_json = "1"
|
2022-07-29 12:20:49 +03:00
|
|
|
serde_yaml = "0.9"
|
2023-06-01 16:05:06 +03:00
|
|
|
sqlx = { version = "0.6", features = ["offline", "sqlite", "runtime-actix-native-tls"] }
|
2022-12-22 09:35:29 +03:00
|
|
|
subst = { version = "0.2", features = ["yaml"] }
|
2022-12-13 13:02:38 +03:00
|
|
|
thiserror = "1"
|
2022-08-15 16:54:48 +03:00
|
|
|
tilejson = "0.3"
|
2023-06-03 03:40:22 +03:00
|
|
|
tokio = { version = "1.28.2", features = ["macros"] }
|