# 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.95"
name = "delaunay"
version = "0.7.7"
authors = ["Adam Getchell <adam@adamgetchell.org>"]
build = false
include = [
    "/Cargo.lock",
    "/Cargo.toml",
    "/CITATION.cff",
    "/LICENSE",
    "/README.md",
    "/REFERENCES.md",
    "/benches/**/*.rs",
    "/benches/README.md",
    "/docs/*.md",
    "/examples/**/*.rs",
    "/examples/README.md",
    "/src/**/*.rs",
    "/tests/*.proptest-regressions",
    "/tests/*.rs",
    "/tests/COVERAGE.md",
    "/tests/README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "D-dimensional Delaunay triangulations and convex hulls in Rust, with exact predicates, multi-level validation, and bistellar flips"
homepage = "https://github.com/acgetchell/delaunay"
documentation = "https://docs.rs/delaunay"
readme = "README.md"
keywords = [
    "delaunay",
    "triangulation",
    "geometry",
    "convex-hull",
    "simplicial-complex",
]
categories = [
    "algorithms",
    "mathematics",
    "science",
]
license = "BSD-3-Clause"
repository = "https://github.com/acgetchell/delaunay"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
bench = []
bench-logging = []
count-allocations = ["dep:allocation-counter"]
diagnostics = []
slow-tests = []

[lib]
name = "delaunay"
path = "src/lib.rs"

[[example]]
name = "convex_hull_3d_1000_points"
path = "examples/convex_hull_3d_1000_points.rs"

[[example]]
name = "delaunayize_repair"
path = "examples/delaunayize_repair.rs"

[[example]]
name = "diagnostics"
path = "examples/diagnostics.rs"

[[example]]
name = "into_from_conversions"
path = "examples/into_from_conversions.rs"

[[example]]
name = "memory_analysis"
path = "examples/memory_analysis.rs"

[[example]]
name = "numerical_robustness"
path = "examples/numerical_robustness.rs"

[[example]]
name = "pachner_roundtrip_4d"
path = "examples/pachner_roundtrip_4d.rs"

[[example]]
name = "point_comparison_and_hashing"
path = "examples/point_comparison_and_hashing.rs"

[[example]]
name = "topology_editing_2d_3d"
path = "examples/topology_editing_2d_3d.rs"

[[example]]
name = "triangulation_3d_1000_points"
path = "examples/triangulation_3d_1000_points.rs"

[[example]]
name = "zero_allocation_iterator_demo"
path = "examples/zero_allocation_iterator_demo.rs"

[[test]]
name = "allocation_api"
path = "tests/allocation_api.rs"

[[test]]
name = "check_perturbation_stats"
path = "tests/check_perturbation_stats.rs"

[[test]]
name = "circumsphere_debug_tools"
path = "tests/circumsphere_debug_tools.rs"

[[test]]
name = "conflict_region_verification"
path = "tests/conflict_region_verification.rs"

[[test]]
name = "coordinate_conversion_errors"
path = "tests/coordinate_conversion_errors.rs"

[[test]]
name = "dedup_batch_construction"
path = "tests/dedup_batch_construction.rs"

[[test]]
name = "delaunay_edge_cases"
path = "tests/delaunay_edge_cases.rs"

[[test]]
name = "delaunay_incremental_insertion"
path = "tests/delaunay_incremental_insertion.rs"

[[test]]
name = "delaunay_public_api_coverage"
path = "tests/delaunay_public_api_coverage.rs"

[[test]]
name = "delaunay_repair_fallback"
path = "tests/delaunay_repair_fallback.rs"

[[test]]
name = "delaunayize_workflow"
path = "tests/delaunayize_workflow.rs"

[[test]]
name = "euler_characteristic"
path = "tests/euler_characteristic.rs"

[[test]]
name = "insert_with_statistics"
path = "tests/insert_with_statistics.rs"

[[test]]
name = "k3_cycle_predicate"
path = "tests/k3_cycle_predicate.rs"

[[test]]
name = "large_scale_debug"
path = "tests/large_scale_debug.rs"

[[test]]
name = "prelude_exports"
path = "tests/prelude_exports.rs"

[[test]]
name = "proptest_cell"
path = "tests/proptest_cell.rs"

[[test]]
name = "proptest_convex_hull"
path = "tests/proptest_convex_hull.rs"

[[test]]
name = "proptest_delaunay_triangulation"
path = "tests/proptest_delaunay_triangulation.rs"

[[test]]
name = "proptest_euler_characteristic"
path = "tests/proptest_euler_characteristic.rs"

[[test]]
name = "proptest_facet"
path = "tests/proptest_facet.rs"

[[test]]
name = "proptest_flips"
path = "tests/proptest_flips.rs"

[[test]]
name = "proptest_geometry"
path = "tests/proptest_geometry.rs"

[[test]]
name = "proptest_orientation"
path = "tests/proptest_orientation.rs"

[[test]]
name = "proptest_point"
path = "tests/proptest_point.rs"

[[test]]
name = "proptest_predicates"
path = "tests/proptest_predicates.rs"

[[test]]
name = "proptest_safe_conversions"
path = "tests/proptest_safe_conversions.rs"

[[test]]
name = "proptest_serialization"
path = "tests/proptest_serialization.rs"

[[test]]
name = "proptest_sos"
path = "tests/proptest_sos.rs"

[[test]]
name = "proptest_tds"
path = "tests/proptest_tds.rs"

[[test]]
name = "proptest_toroidal"
path = "tests/proptest_toroidal.rs"

[[test]]
name = "proptest_triangulation"
path = "tests/proptest_triangulation.rs"

[[test]]
name = "proptest_vertex"
path = "tests/proptest_vertex.rs"

[[test]]
name = "public_topology_api"
path = "tests/public_topology_api.rs"

[[test]]
name = "regressions"
path = "tests/regressions.rs"

[[test]]
name = "serialization_vertex_preservation"
path = "tests/serialization_vertex_preservation.rs"

[[test]]
name = "tds_orientation"
path = "tests/tds_orientation.rs"

[[test]]
name = "trait_bound_ergonomics"
path = "tests/trait_bound_ergonomics.rs"

[[test]]
name = "triangulation_builder"
path = "tests/triangulation_builder.rs"

[[bench]]
name = "ci_performance_suite"
path = "benches/ci_performance_suite.rs"
harness = false

[[bench]]
name = "circumsphere_containment"
path = "benches/circumsphere_containment.rs"
harness = false

[[bench]]
name = "cold_path_predicates"
path = "benches/cold_path_predicates.rs"
harness = false

[[bench]]
name = "profiling_suite"
path = "benches/profiling_suite.rs"
harness = false

[[bench]]
name = "tds_clone"
path = "benches/tds_clone.rs"
harness = false

[[bench]]
name = "topology_guarantee_construction"
path = "benches/topology_guarantee_construction.rs"
harness = false

[dependencies.allocation-counter]
version = "0.8.1"
optional = true

[dependencies.arc-swap]
version = "1.9.1"

[dependencies.la-stack]
version = "0.4.1"
features = ["exact"]

[dependencies.num-traits]
version = "0.2.19"

[dependencies.ordered-float]
version = "5.3.0"
features = ["serde"]

[dependencies.rand]
version = "0.10.1"

[dependencies.rustc-hash]
version = "2.1.2"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.slotmap]
version = "1.1.1"
features = ["serde"]

[dependencies.smallvec]
version = "1.15.1"
features = ["serde"]

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false

[dependencies.uuid]
version = "1.23.1"
features = [
    "v4",
    "serde",
    "fast-rng",
]

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.pastey]
version = "0.2.2"

[dev-dependencies.proptest]
version = "1.11.0"

[dev-dependencies.serde_json]
version = "1.0.149"

[dev-dependencies.sysinfo]
version = "0.39.1"

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[lints.clippy]
extra_unused_type_parameters = "warn"

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

[lints.rust]
unsafe_code = "forbid"

[lints.rust.dead_code]
level = "warn"
priority = 0

[lints.rust.missing_docs]
level = "deny"
priority = 0

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]

[lints.rust.warnings]
level = "deny"
priority = -1

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"

[profile.perf]
lto = "thin"
codegen-units = 1
debug = "line-tables-only"
inherits = "release"
