[package]
edition = "2024"
rust-version = "1.89"
name = "polyclip"
version = "0.0.6"
build = false
exclude = [
".github",
"fuzz",
"oracle",
"testdata",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Exact integer 2D polygon geometry: booleans, offsetting, arcs, distance queries, fracture, triangulation."
readme = "README.md"
keywords = [
"polygon",
"clipping",
"geometry",
"offset",
"boolean",
]
categories = [
"algorithms",
"graphics",
"mathematics",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/polyclip"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
rayon = ["dep:rayon"]
serde = ["dep:serde"]
[lib]
name = "polyclip"
path = "src/lib.rs"
[[example]]
name = "perf"
path = "examples/perf.rs"
[[test]]
name = "adversarial"
path = "tests/adversarial.rs"
[[test]]
name = "adversarial2"
path = "tests/adversarial2.rs"
[[test]]
name = "boolean"
path = "tests/boolean.rs"
[[test]]
name = "cluster_offsets"
path = "tests/cluster_offsets.rs"
[[test]]
name = "corpus"
path = "tests/corpus.rs"
[[test]]
name = "fuzz_regressions"
path = "tests/fuzz_regressions.rs"
[[test]]
name = "pcb_pipeline"
path = "tests/pcb_pipeline.rs"
[[test]]
name = "prop_boolean"
path = "tests/prop_boolean.rs"
[[test]]
name = "prop_clip_paths"
path = "tests/prop_clip_paths.rs"
[[test]]
name = "prop_cluster"
path = "tests/prop_cluster.rs"
[[test]]
name = "prop_curved"
path = "tests/prop_curved.rs"
[[test]]
name = "prop_decompose"
path = "tests/prop_decompose.rs"
[[test]]
name = "prop_distance"
path = "tests/prop_distance.rs"
[[test]]
name = "prop_engine"
path = "tests/prop_engine.rs"
[[test]]
name = "prop_fracture"
path = "tests/prop_fracture.rs"
[[test]]
name = "prop_incremental"
path = "tests/prop_incremental.rs"
[[test]]
name = "prop_offset"
path = "tests/prop_offset.rs"
[[test]]
name = "prop_offset_fast"
path = "tests/prop_offset_fast.rs"
[[test]]
name = "prop_prepared"
path = "tests/prop_prepared.rs"
[[test]]
name = "prop_simplify"
path = "tests/prop_simplify.rs"
[[test]]
name = "prop_triangulate"
path = "tests/prop_triangulate.rs"
[[test]]
name = "thread_safety"
path = "tests/thread_safety.rs"
[[bench]]
name = "workloads"
path = "benches/workloads.rs"
harness = false
[dependencies.libm]
version = "0.2"
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false
[profile.release]
debug = "line-tables-only"