martin/Cargo.toml

54 lines
1.6 KiB
TOML
Raw Normal View History

[workspace]
members = ["martin", "martin-tile-utils", "martin-mbtiles"]
[workspace.package]
edition = "2021"
license = "MIT OR Apache-2.0"
2023-07-06 03:56:23 +03:00
repository = "https://github.com/maplibre/martin"
rust-version = "1.65"
[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.10"
chore(deps): bump env_logger from 0.9.3 to 0.10.0 (#493) [//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.10.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md">env_logger's changelog</a>.</em></p> <blockquote> <h2>[0.10.0] - 2022-11-24</h2> <p>MSRV changed to 1.60 to hide optional dependencies</p> <h3>Fixes</h3> <ul> <li>Resolved soundness issue by switching from <code>atty</code> to <code>is-terminal</code></li> </ul> <h3>Breaking Changes</h3> <p>To open room for changing dependencies:</p> <ul> <li>Renamed <code>termcolor</code> feature to <code>color</code></li> <li>Renamed <code>atty</code> feature to <code>auto-color</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-cli/env_logger/commit/ff029fa8b6258ed926134f51d38ee85ebd553c35"><code>ff029fa</code></a> chore: Release</li> <li><a href="https://github.com/rust-cli/env_logger/commit/389cc52d5a14b45286c6478b00148abeaeccf4a7"><code>389cc52</code></a> docs: Fix changelog links</li> <li><a href="https://github.com/rust-cli/env_logger/commit/2979c4b7b8a42e0247dee69a513249976afcd1ed"><code>2979c4b</code></a> docs: Update changelog</li> <li><a href="https://github.com/rust-cli/env_logger/commit/4c379170f7824ac10eab9af52f5645ecae9214cd"><code>4c37917</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-cli/env_logger/issues/248">#248</a> from epage/atty</li> <li><a href="https://github.com/rust-cli/env_logger/commit/d55d26980f338179e5d1829fb8d16b1d509530f1"><code>d55d269</code></a> style: Make clippy happy</li> <li><a href="https://github.com/rust-cli/env_logger/commit/066c2192c187f047ae178e786ff36e6cabed21f7"><code>066c219</code></a> fix: Replace atty with is_terminal</li> <li><a href="https://github.com/rust-cli/env_logger/commit/4db5e8793162e33e17efce36057afaa41d988788"><code>4db5e87</code></a> fix!: Rename termcolor/atty features</li> <li><a href="https://github.com/rust-cli/env_logger/commit/660cf7feb27e07bd308c3952637c5ae21c438846"><code>660cf7f</code></a> fix: Bump MSRV to 1.60.0</li> <li><a href="https://github.com/rust-cli/env_logger/commit/e572d048722c0af9c891df4ac8ef0716353c807d"><code>e572d04</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-cli/env_logger/issues/244">#244</a> from epage/update</li> <li><a href="https://github.com/rust-cli/env_logger/commit/f1ff331fa2e3f1111cd918ba91b22ad5a7070777"><code>f1ff331</code></a> docs: Fix typos</li> <li>Additional commits viewable in <a href="https://github.com/rust-cli/env_logger/compare/v0.9.3...v0.10.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=env_logger&package-manager=cargo&previous-version=0.9.3&new-version=0.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-27 05:34:49 +03:00
env_logger = "0.10"
flate2 = "1"
futures = "0.3"
indoc = "2"
itertools = "0.11"
2018-03-26 14:12:43 +03:00
log = "0.4"
martin-mbtiles = { path = "./martin-mbtiles", version = "0.4.0", default-features = false, features = ["native-tls"] } # disable CLI tools
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
num_cpus = "1"
openssl = "0.10"
2023-05-25 19:01:35 +03:00
pmtiles = { version = "0.2.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 = "0.5"
postgres-protocol = "0.6"
regex = "1"
semver = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
Add dynamic sprites support (#715) Dynamically create image sprites for MapLibre rendering, given a directory with images. ### TODO * [x] Work with @flother to merge these PRs * [x] https://github.com/flother/spreet/pull/59 (must have) * [x] https://github.com/flother/spreet/pull/57 * [x] https://github.com/flother/spreet/pull/56 * [ ] https://github.com/flother/spreet/pull/62 (not required but nice to have, can upgrade later without any code changes) * [x] Add docs to the book * [x] Add CLI param, e.g. `--sprite <dir_path>` * [x] Don't output `.sprites` in auto-genned config when not in use ### API Per [MapLibre sprites API](https://maplibre.org/maplibre-style-spec/sprite/), we need to support the following: * `/sprite/<sprite_id>.json` metadata about the sprite file - all coming from a single directory * `/sprite/<sprite_id>.png` all images combined into a single PNG * `/sprite/<sprite_id>@2x.json` same but for high DPI devices * `/sprite/<sprite_id>@2x.png` Multiple sprite_id values can be combined into one sprite with the same pattern as for tile joining: `/sprite/<sprite_id1>,<sprite_id2>,...,<sprite_idN>[.json|.png|@2x.json|@2x.png]`. No ID renaming is done, so identical names will override one another. ### Configuration [Config file](https://maplibre.org/martin/config-file.html) and possibly CLI should have a simple option to serve sprites. The configuration may look similar to how mbtiles and pmtiles are configured: ```yaml # Publish sprite images sprites: paths: # scan this whole dir, matching all image files, and publishing it as "my_images" sprite source - /path/to/my_images sources: # named source matching source name to a directory my_sprites: /path/to/some_dir ``` Implement #705
2023-06-16 15:19:47 +03:00
spreet = { version = "0.8", default-features = false }
sqlx = { version = "0.7", features = ["sqlite"] }
subst = { version = "0.2", features = ["yaml"] }
thiserror = "1"
tilejson = "0.3"
chore(deps): Bump tokio from 1.29.0 to 1.29.1 (#736) Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.29.0 to 1.29.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases">tokio's releases</a>.</em></p> <blockquote> <h2>Tokio v1.29.1</h2> <h3>Fixed</h3> <ul> <li>rt: fix nesting two <code>block_in_place</code> with a <code>block_on</code> between (<a href="https://redirect.github.com/tokio-rs/tokio/issues/5837">#5837</a>)</li> </ul> <p><a href="https://redirect.github.com/tokio-rs/tokio/issues/5837">#5837</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/5837">tokio-rs/tokio#5837</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/tokio/commit/1b1b9dc7e388d0619fe7bfe6a7618fff596fdee1"><code>1b1b9dc</code></a> chore: prepare Tokio v1.29.1 release</li> <li><a href="https://github.com/tokio-rs/tokio/commit/012c8484019efb13ecdbbf0e6e76a55fd2dd6ec0"><code>012c848</code></a> rt: fix nesting block_in_place with block_on (<a href="https://redirect.github.com/tokio-rs/tokio/issues/5837">#5837</a>)</li> <li>See full diff in <a href="https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.29.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tokio&package-manager=cargo&previous-version=1.29.0&new-version=1.29.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-30 06:36:18 +03:00
tokio = { version = "1.29.1", features = ["macros"] }
[profile.dev.package.sqlx-macros]
# See https://github.com/launchbadge/sqlx#compile-time-verification
opt-level = 3