map-tile-toolkit 0.4.3

Clip integer polylines and polygons into per-tile pieces on a simple tile grid
Documentation
# 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 = "2024"
rust-version = "1.98"
name = "map-tile-toolkit"
version = "0.4.3"
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.33.0"
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.geo]
version = "0.33.1"
features = ["multithreading"]
default-features = false

[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.15"

[lints.clippy]
absolute_paths = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
branches_sharing_code = "warn"
cfg_not_test = "warn"
clone_on_ref_ptr = "warn"
collection_is_never_read = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
derive_partial_eq_without_eq = "allow"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
enum_variant_names = "allow"
equatable_if_let = "warn"
error_impl_error = "warn"
exit = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
float_cmp_const = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
implicit_hasher = "allow"
imprecise_flops = "warn"
infinite_loop = "warn"
iter_on_single_items = "warn"
large_stack_frames = "warn"
lossy_float_literal = "warn"
map_err_ignore = "warn"
map_with_unused_argument_over_ranges = "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"
needless_collect = "warn"
needless_raw_strings = "warn"
negative_feature_names = "warn"
non_zero_suggestions = "warn"
panic = "warn"
panic_in_result_fn = "warn"
pathbuf_init_then_push = "warn"
precedence_bits = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "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"
self_named_module_files = "warn"
significant_drop_in_scrutinee = "warn"
str_to_string = "warn"
string_add = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
struct_field_names = "allow"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
trait_duplication_in_bounds = "warn"
try_err = "warn"
type_repetition_in_bounds = "warn"
unchecked_time_subtraction = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unreachable = "warn"
unused_peekable = "warn"
unused_result_ok = "warn"
unused_trait_names = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
meta_variable_misuse = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unsafe_code = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"