[package]
edition = "2024"
rust-version = "1.88"
name = "map-tile-toolkit"
version = "0.3.0"
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Clip integer polylines and polygons into per-tile pieces on a simple tile grid"
readme = "README.md"
keywords = [
"mvt",
"tile",
"geo",
"polyline",
"clip",
]
categories = ["science::geo"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/nyurik/map-tile-toolkit"
[features]
default = []
hotpath = [
"dep:hotpath",
"hotpath/hotpath",
]
hotpath-alloc = [
"hotpath",
"hotpath/hotpath-alloc",
]
[lib]
name = "map_tile_toolkit"
path = "src/lib.rs"
[[example]]
name = "mvt_features"
path = "examples/mvt_features.rs"
[[example]]
name = "profile"
path = "examples/profile.rs"
[[example]]
name = "simplify_slice"
path = "examples/simplify_slice.rs"
[[test]]
name = "accessors"
path = "tests/accessors.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "baseline"
path = "tests/baseline.rs"
[[test]]
name = "clip_point"
path = "tests/clip_point.rs"
[[test]]
name = "clip_polygon"
path = "tests/clip_polygon.rs"
[[test]]
name = "clip_polyline"
path = "tests/clip_polyline.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "local_frame"
path = "tests/local_frame.rs"
[[test]]
name = "mosaic"
path = "tests/mosaic.rs"
[[test]]
name = "mosaic_bad"
path = "tests/mosaic_bad.rs"
[[test]]
name = "payload"
path = "tests/payload.rs"
[[test]]
name = "polygon_all"
path = "tests/polygon_all.rs"
[[test]]
name = "polygon_mosaic"
path = "tests/polygon_mosaic.rs"
[[test]]
name = "random"
path = "tests/random.rs"
[[bench]]
name = "slicing"
path = "benches/slicing.rs"
harness = false
[dependencies.geo-types]
version = "0.7.19"
[dependencies.hotpath]
version = "0.28.4"
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.geo]
version = "0.33.1"
[dev-dependencies.geojson]
version = "1.0.0"
features = ["geo-types"]
[dev-dependencies.gungraun]
version = "0.20"
[dev-dependencies.insta]
version = "1"
[dev-dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dev-dependencies.stats_alloc]
version = "0.1"
[dev-dependencies.test_each_file]
version = "0.3.7"
[dev-dependencies.wkt]
version = "0.14"
[lints.clippy]
disallowed_methods = "forbid"
multiple_crate_versions = "allow"
panic_in_result_fn = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"
use_self = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
unused_qualifications = "warn"
[profile.bench]
debug = 2
[profile.profiling]
debug = 2
inherits = "release"