[package]
edition = "2024"
rust-version = "1.98"
name = "map-tile-toolkit"
version = "0.4.0"
authors = [
"Yuri Astrakhan <YuriAstrakhan@gmail.com>",
"MapLibre contributors",
]
build = false
exclude = [
"tests/*/fixtures",
"tests/*/bad-fixtures",
"tests/*/snapshots*",
"tests/grid.geojson",
]
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"
homepage = "https://martin.maplibre.org/"
readme = "README.md"
keywords = [
"mvt",
"tile",
"geo",
"polyline",
"clip",
]
categories = ["science::geo"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maplibre/martin"
[features]
default = []
hotpath = [
"dep:hotpath",
"hotpath/hotpath",
]
hotpath-alloc = [
"hotpath",
"hotpath/hotpath-alloc",
]
hotpath-callgrind = [
"hotpath",
"hotpath/hotpath-callgrind",
]
hotpath-cloud = [
"hotpath",
"hotpath/hotpath-cloud",
]
[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 = "box_edges"
path = "tests/box_edges.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 = "polygon_valid"
path = "tests/polygon_valid.rs"
[[test]]
name = "polygon_valid_random"
path = "tests/polygon_valid_random.rs"
[[test]]
name = "quantize"
path = "tests/quantize.rs"
[[test]]
name = "random"
path = "tests/random.rs"
[[test]]
name = "unclipped"
path = "tests/unclipped.rs"
[dependencies.geo-types]
version = "0.7.19"
[dependencies.hotpath]
version = "0.29.2"
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.geo]
version = "0.33.1"
[dev-dependencies.geojson]
version = "1"
features = ["geo-types"]
[dev-dependencies.insta]
version = "1.46.3"
[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]
absolute_paths = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "warn"
derive_partial_eq_without_eq = "allow"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
enum_variant_names = "allow"
error_impl_error = "warn"
exit = "warn"
filetype_is_file = "warn"
format_push_string = "warn"
if_then_some_else_none = "warn"
implicit_hasher = "allow"
lossy_float_literal = "warn"
map_err_ignore = "warn"
mem_forget = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_read_write_in_expression = "warn"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
negative_feature_names = "warn"
panic = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_feature_names = "warn"
redundant_test_prefix = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
same_name_method = "warn"
str_to_string = "warn"
string_slice = "warn"
struct_field_names = "allow"
todo = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unused_trait_names = "warn"
unwrap_used = "warn"
use_self = "warn"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unused_qualifications = "warn"