2023-06-01 16:05:06 +03:00
|
|
|
[workspace]
|
2023-08-28 04:07:29 +03:00
|
|
|
resolver = "2"
|
2023-10-28 11:50:49 +03:00
|
|
|
members = ["martin", "martin-tile-utils", "mbtiles"]
|
2023-06-01 16:05:06 +03:00
|
|
|
|
|
|
|
[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"
|
2023-07-10 21:38:48 +03:00
|
|
|
readme = "README.md"
|
|
|
|
homepage = "https://martin.maplibre.org/"
|
2023-06-01 16:05:06 +03:00
|
|
|
|
2023-11-17 03:29:25 +03:00
|
|
|
[workspace.lints.rust]
|
2023-11-19 13:06:37 +03:00
|
|
|
unused_qualifications = "warn"
|
2023-11-17 21:55:05 +03:00
|
|
|
# Lints inheritance from workspace is not yet supported
|
|
|
|
# Crate mbtiles uses unsafe code, so we can't forbid it here
|
|
|
|
# unsafe_code = "forbid"
|
2023-11-17 03:29:25 +03:00
|
|
|
|
|
|
|
[workspace.lints.clippy]
|
2023-11-20 09:27:51 +03:00
|
|
|
pedantic = { level = "warn", priority = -1 }
|
2023-11-17 03:29:25 +03:00
|
|
|
derive_partial_eq_without_eq = "allow"
|
|
|
|
implicit_hasher = "allow"
|
|
|
|
missing_errors_doc = "allow"
|
|
|
|
missing_panics_doc = "allow"
|
|
|
|
module_name_repetitions = "allow"
|
|
|
|
|
2023-06-01 16:05:06 +03:00
|
|
|
[workspace.dependencies]
|
2022-08-15 16:54:48 +03:00
|
|
|
actix-cors = "0.6"
|
|
|
|
actix-http = "3"
|
|
|
|
actix-rt = "2"
|
|
|
|
actix-web = "4"
|
2023-06-03 03:40:22 +03:00
|
|
|
anyhow = "1.0"
|
2023-11-13 09:03:40 +03:00
|
|
|
approx = "0.5.1"
|
2022-08-15 16:54:48 +03:00
|
|
|
async-trait = "0.1"
|
Implement dynamic font support `/font/<name>/<start>-<end>` (#755)
This implements dynamic font protobuf generation, allowing users to
request font ranges on the fly, and combining them in any order, e.g.
`Font1,Font2,Font3`, same as with sprites and tiles
This is a first iteration, without any multithreading support. In
theory, this could be done far faster by generating SDFs with multiple
threads.
### Current process
* during init, figure out all glyphs available in each font, and store
them as a bitset
* during request:
* combine requested bitsets to figure out which glyph should come from
which font file
* load those glyphs from files (using a single instance of the freetype
lib)
* convert them to SDFs and package them into a protobuf
---------
Co-authored-by: Lucas <zhangyijunmetro@hotmail.com>
2023-10-28 08:10:48 +03:00
|
|
|
bit-set = "0.5.3"
|
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-09-26 21:24:56 +03:00
|
|
|
deadpool-postgres = "0.11"
|
2023-10-10 18:10:17 +03:00
|
|
|
enum-display = "0.1"
|
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"
|
2023-10-20 06:40:08 +03:00
|
|
|
insta = "1"
|
2023-11-16 02:25:31 +03:00
|
|
|
itertools = "0.12"
|
2023-10-10 09:41:56 +03:00
|
|
|
json-patch = "1.2"
|
2018-03-26 14:12:43 +03:00
|
|
|
log = "0.4"
|
2023-12-09 18:17:19 +03:00
|
|
|
martin-tile-utils = { path = "./martin-tile-utils", version = "0.2.0" }
|
2023-11-20 09:46:11 +03:00
|
|
|
mbtiles = { path = "./mbtiles", version = "0.8.0" }
|
2022-08-15 16:54:48 +03:00
|
|
|
num_cpus = "1"
|
Implement dynamic font support `/font/<name>/<start>-<end>` (#755)
This implements dynamic font protobuf generation, allowing users to
request font ranges on the fly, and combining them in any order, e.g.
`Font1,Font2,Font3`, same as with sprites and tiles
This is a first iteration, without any multithreading support. In
theory, this could be done far faster by generating SDFs with multiple
threads.
### Current process
* during init, figure out all glyphs available in each font, and store
them as a bitset
* during request:
* combine requested bitsets to figure out which glyph should come from
which font file
* load those glyphs from files (using a single instance of the freetype
lib)
* convert them to SDFs and package them into a protobuf
---------
Co-authored-by: Lucas <zhangyijunmetro@hotmail.com>
2023-10-28 08:10:48 +03:00
|
|
|
pbf_font_tools = { version = "2.5.0", features = ["freetype"] }
|
2023-11-20 09:27:51 +03:00
|
|
|
pmtiles = { version = "0.5", 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"] }
|
2022-08-15 16:54:48 +03:00
|
|
|
postgres-protocol = "0.6"
|
2023-10-10 18:10:17 +03:00
|
|
|
pretty_assertions = "1"
|
2023-02-06 22:32:28 +03:00
|
|
|
regex = "1"
|
2023-10-10 18:10:17 +03:00
|
|
|
rstest = "0.18"
|
2023-09-30 12:58:49 +03:00
|
|
|
rustls = { version = "0.21", features = ["dangerous_configuration"] }
|
|
|
|
rustls-native-certs = "0.6"
|
|
|
|
rustls-pemfile = "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"
|
2023-11-13 06:22:04 +03:00
|
|
|
serde_with = "3"
|
2022-07-29 12:20:49 +03:00
|
|
|
serde_yaml = "0.9"
|
2023-11-13 09:03:40 +03:00
|
|
|
size_format = "1.0.2"
|
2023-12-07 10:20:32 +03:00
|
|
|
spreet = { version = "0.11", default-features = false }
|
2023-10-10 18:10:17 +03:00
|
|
|
sqlite-hashes = { version = "0.5", default-features = false, features = ["md5", "window", "hex"] }
|
2023-09-30 03:40:32 +03:00
|
|
|
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio"] }
|
2023-09-06 07:30:40 +03:00
|
|
|
subst = { version = "0.3", features = ["yaml"] }
|
2022-12-13 13:02:38 +03:00
|
|
|
thiserror = "1"
|
2023-12-15 09:11:31 +03:00
|
|
|
tile-grid = "0.5"
|
2023-11-20 09:27:51 +03:00
|
|
|
tilejson = "0.4"
|
2023-11-10 06:28:15 +03:00
|
|
|
tokio = { version = "1", features = ["macros"] }
|
2023-09-30 12:58:49 +03:00
|
|
|
tokio-postgres-rustls = "0.10"
|
2023-06-04 05:50:55 +03:00
|
|
|
|
2023-10-04 04:20:41 +03:00
|
|
|
[profile.dev.package]
|
2023-06-04 05:50:55 +03:00
|
|
|
# See https://github.com/launchbadge/sqlx#compile-time-verification
|
2023-10-04 04:20:41 +03:00
|
|
|
sqlx-macros.opt-level = 3
|
2023-10-10 18:10:17 +03:00
|
|
|
# See https://docs.rs/insta/latest/insta/#optional-faster-runs
|
|
|
|
insta.opt-level = 3
|
|
|
|
similar.opt-level = 3
|
|
|
|
|
2023-11-20 09:27:51 +03:00
|
|
|
[patch.crates-io]
|
2023-11-09 03:46:23 +03:00
|
|
|
#pmtiles = { path = "../pmtiles-rs" }
|
2023-11-20 09:27:51 +03:00
|
|
|
#sqlite-hashes = { path = "../sqlite-hashes" }
|
2023-11-19 13:06:37 +03:00
|
|
|
#tilejson = { path = "../tilejson" }
|
2023-11-20 09:27:51 +03:00
|
|
|
#pmtiles = { git = "https://github.com/nyurik/pmtiles-rs", branch = "override" }
|
|
|
|
#tilejson = { git = "https://github.com/nyurik/tilejson", branch = "btreemap" }
|