clipper2 0.6.0

A safe, idiomatic Rust API for 2D polygon boolean clipping (intersection, union, difference, XOR), offsetting (inflate/deflate), Minkowski sum/difference, simplification, area, and point-in-polygon, on top of Clipper2.
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.85"
name = "clipper2"
version = "0.6.0"
authors = ["Fredrik Söderström <tirithen@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A safe, idiomatic Rust API for 2D polygon boolean clipping (intersection, union, difference, XOR), offsetting (inflate/deflate), Minkowski sum/difference, simplification, area, and point-in-polygon, on top of Clipper2."
documentation = "https://docs.rs/clipper2/"
readme = "README.md"
keywords = [
    "polygon",
    "clipping",
    "offset",
    "minkowski",
    "clipper2",
]
categories = [
    "algorithms",
    "graphics",
    "science::geo",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tirithen/clipper2"

[package.metadata.docs.rs]
features = ["doc-images"]

[features]
default = ["doc-images"]
doc-images = []
serde = [
    "dep:serde",
    "clipper2c-sys/serde",
]

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

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

[[example]]
name = "difference-and-inflate"
path = "examples/difference-and-inflate.rs"

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

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

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

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

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

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

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

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

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

[dependencies.clipper2c-sys]
version = "0.2"

[dependencies.libc]
version = "0.2"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.embed-doc-image]
version = "0.1"

[dev-dependencies.macroquad]
version = "0.4.13"

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