# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.76" name = "martin" version = "0.14.2" authors = [ "Stepan Kuzmin ", "Yuri Astrakhan ", "MapLibre contributors", ] exclude = ["/tests"] default-run = "martin" description = "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support" homepage = "https://martin.maplibre.org/" readme = "README.md" keywords = [ "maps", "tiles", "mbtiles", "pmtiles", "postgis", ] categories = [ "science::geo", "web-programming::http-server", ] license = "MIT OR Apache-2.0" repository = "https://github.com/maplibre/martin" [package.metadata.deb] assets = [ [ "target/release/martin", "/usr/bin/martin", "755", ], [ "target/release/martin-cp", "/usr/bin/martin-cp", "755", ], [ "target/release/mbtiles", "/usr/bin/mbtiles", "755", ], [ "../README.md", "/usr/share/doc/martin/README.md", "644", ], [ "../debian/config.yaml", "/usr/share/doc/martin/config.yaml", "644", ], [ "../debian/config.yaml", "/usr/local/etc/martin/config.yaml", "644", ], ] depends = "$auto" maintainer = "Yuri Astrakhan , Stepan Kuzmin , MapLibre contributors" maintainer-scripts = "../debian" name = "martin" revision = "" [package.metadata.deb.systemd-units] enable = false restart-after-upgrade = false start = false stop-on-upgrade = true unit-scripts = "../debian/" [lib] path = "src/lib.rs" [[bin]] name = "martin" path = "src/bin/martin.rs" [[bin]] name = "martin-cp" path = "src/bin/martin-cp.rs" required-features = ["mbtiles"] [[bench]] name = "bench" harness = false [dependencies.actix-cors] version = "0.7" [dependencies.actix-http] version = "3" [dependencies.actix-rt] version = "2" [dependencies.actix-web] version = "4" [dependencies.async-trait] version = "0.1" [dependencies.bit-set] version = "0.5.3" optional = true [dependencies.brotli] version = ">=5, <7" [dependencies.clap] version = "4" features = ["derive"] [dependencies.deadpool-postgres] version = "0.14" optional = true [dependencies.enum-display] version = "0.1" [dependencies.env_logger] version = "0.11" [dependencies.futures] version = "0.3" [dependencies.itertools] version = "0.13" [dependencies.json-patch] version = "2.0" optional = true [dependencies.lambda-web] version = "0.2.1" features = ["actix4"] optional = true [dependencies.log] version = "0.4" [dependencies.martin-tile-utils] version = "0.5.1" [dependencies.mbtiles] version = "0.11.1" optional = true [dependencies.moka] version = "0.12" features = ["future"] [dependencies.num_cpus] version = "1" [dependencies.pbf_font_tools] version = "2.5.1" features = ["freetype"] optional = true [dependencies.pmtiles] version = "0.10" features = [ "http-async", "mmap-async-tokio", "tilejson", "reqwest-rustls-tls-native-roots", ] optional = true [dependencies.postgis] version = "0.9" optional = true [dependencies.postgres] version = "0.19" features = [ "with-time-0_3", "with-uuid-1", "with-serde_json-1", ] optional = true [dependencies.postgres-protocol] version = "0.6" optional = true [dependencies.regex] version = "1" [dependencies.rustls] version = "0.23.10" [dependencies.rustls-native-certs] version = "0.7" [dependencies.rustls-pemfile] version = "2" [dependencies.semver] version = "1" optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.serde_with] version = "3" [dependencies.serde_yaml] version = "0.9" [dependencies.spreet] version = "0.11" optional = true default-features = false [dependencies.subst] version = "0.3" features = ["yaml"] [dependencies.thiserror] version = "1" [dependencies.tilejson] version = "0.4" [dependencies.tokio] version = "1" features = [ "macros", "io-std", ] [dependencies.tokio-postgres-rustls] version = "0.12" optional = true [dependencies.url] version = "2.5" [dev-dependencies.cargo-husky] version = "1" features = ["user-hooks"] default-features = false [dev-dependencies.criterion] version = "0.5" features = [ "async_futures", "async_tokio", "html_reports", ] [dev-dependencies.ctor] version = "0.2" [dev-dependencies.indoc] version = "2" [dev-dependencies.insta] version = "1" features = ["yaml"] [dev-dependencies.pprof] version = "0.13" features = [ "flamegraph", "criterion", ] [dev-dependencies.rstest] version = "0.21" [features] bless-tests = [] default = [ "fonts", "lambda", "mbtiles", "pmtiles", "postgres", "sprites", ] fonts = [ "dep:bit-set", "dep:pbf_font_tools", ] lambda = ["dep:lambda-web"] mbtiles = ["dep:mbtiles"] pmtiles = ["dep:pmtiles"] postgres = [ "dep:deadpool-postgres", "dep:json-patch", "dep:postgis", "dep:postgres", "dep:postgres-protocol", "dep:semver", "dep:tokio-postgres-rustls", ] sprites = [ "dep:spreet", "tokio/fs", ] [lints.clippy] derive_partial_eq_without_eq = "allow" implicit_hasher = "allow" missing_errors_doc = "allow" missing_panics_doc = "allow" module_name_repetitions = "allow" [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] unused_qualifications = "warn"