# 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 = "2021"
name = "cadrum"
version = "0.8.11"
build = "build.rs"
exclude = [
    "/figure",
    "/notes",
    "/steps",
    "/sandbox*",
    "/.github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust CAD library powered by statically linked, headless OpenCASCADE (OCCT 8.0.0) — runs natively and in the browser via WebAssembly"
readme = "README.md"
keywords = [
    "opencascade",
    "cad",
    "step",
    "gltf",
    "geometry",
]
categories = [
    "graphics",
    "science",
]
license = "MIT"
repository = "https://github.com/lzpel/cadrum"

[features]
color = []
default = [
    "color",
    "png",
]
png = ["dep:tiny-skia"]
pure = []
source-build = ["dep:cmake"]

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

[[example]]
name = "00_chijin"
path = "examples/00_chijin.rs"
required-features = ["color"]

[[example]]
name = "01_primitives"
path = "examples/01_primitives.rs"
required-features = ["color"]

[[example]]
name = "02_write_read"
path = "examples/02_write_read.rs"

[[example]]
name = "03_transform"
path = "examples/03_transform.rs"
required-features = ["color"]

[[example]]
name = "04_boolean"
path = "examples/04_boolean.rs"
required-features = ["color"]

[[example]]
name = "05_extrude"
path = "examples/05_extrude.rs"
required-features = ["color"]

[[example]]
name = "06_loft"
path = "examples/06_loft.rs"

[[example]]
name = "07_sweep"
path = "examples/07_sweep.rs"
required-features = ["color"]

[[example]]
name = "08_shell"
path = "examples/08_shell.rs"
required-features = ["color"]

[[example]]
name = "09_bspline"
path = "examples/09_bspline.rs"

[[example]]
name = "101_joint"
path = "examples/101_joint.rs"

[[example]]
name = "10_fillet"
path = "examples/10_fillet.rs"

[[example]]
name = "11_chamfer"
path = "examples/11_chamfer.rs"

[[example]]
name = "12_multiview"
path = "examples/12_multiview.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.cxx]
version = "1"

[dependencies.glam]
version = ">=0.29"
features = ["std"]

[dependencies.tiny-skia]
version = "0.11"
optional = true

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

[build-dependencies.cc]
version = "1"

[build-dependencies.cmake]
version = "0.1"
optional = true

[build-dependencies.cxx-build]
version = "1"

[build-dependencies.libflate]
version = "2"

[build-dependencies.minreq]
version = "2"
features = ["https-rustls"]

[build-dependencies.tar]
version = "0.4"

[build-dependencies.walkdir]
version = "2"
