mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 07:22:52 +03:00
8b34cd374c
* Fix metadata copying * Introduce a new metadata field `agg_tiles_hash_after_apply` for diff files * Added a lot of new info and debug logging * Simplified Copying interface - not much value in having all the complex builder pattern here it seems, might as well use a simple object. ## Testing * Generate SQLite DBs in memory on the fly to validate just what we need * Use `insta` for validating DB content There is now a function `dump(connection) -> Vec<Entry>` to dump the content of the entire SQLite DB into text with `serde`. At many steps through the testing, the DB content is validated with the corresponding .snap file with `insta` crate (which makes this process mega-simple, including a simple way to "bless" (update) any changes). ## Discovered bugs * Seems like normalized files do not get copied properly - they contain extras that should be removed.
71 lines
2.2 KiB
TOML
71 lines
2.2 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["martin", "martin-tile-utils", "martin-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.dependencies]
|
|
actix = "0.13"
|
|
actix-cors = "0.6"
|
|
actix-http = "3"
|
|
actix-rt = "2"
|
|
actix-web = "4"
|
|
anyhow = "1.0"
|
|
async-trait = "0.1"
|
|
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 = { version = "1", features = ["toml"] }
|
|
itertools = "0.11"
|
|
json-patch = "1.2"
|
|
log = "0.4"
|
|
martin-mbtiles = { path = "./martin-mbtiles", version = "0.6.0", default-features = false }
|
|
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
|
|
num_cpus = "1"
|
|
pmtiles = { version = "0.3", 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_yaml = "0.9"
|
|
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.3"
|
|
tokio = { version = "1.33.0", 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]
|
|
#sqlite-hashes = { path = "/home/nyurik/dev/rust/sqlite-hashes" }
|