# 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 = "voxel-tiler-core"
version = "0.3.2"
authors = ["azishio"]
exclude = [
    "examples",
    "benches",
]
description = "Convert point clouds to voxel data."
homepage = "https://crates.io/crates/voxel-tiler-core"
documentation = "https://docs.rs/voxel-tiler-core"
readme = "README.md"
keywords = [
    "voxel",
    "point-cloud",
    "las",
    "ply",
    "glb",
]
categories = [
    "concurrency",
    "data-structures",
    "encoding",
    "mathematics",
    "science::geo",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/azishio/voxel-tiler-core-rs"

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

[[example]]
name = "terrain"
path = "examples/terrain_glb.rs"
required-features = ["image"]

[[example]]
name = "tile"
path = "examples/voxel_tile.rs"
required-features = ["las"]

[[example]]
name = "bunny"
path = "examples/voxel_bunny.rs"
required-features = ["ply"]

[dependencies.anyhow]
version = "1.0.86"

[dependencies.bitflags]
version = "2.6.0"

[dependencies.coordinate-transformer]
version = "1.7.0"
features = ["vec-x"]

[dependencies.dashmap]
version = "6.0.1"

[dependencies.fxhash]
version = "0.2.1"

[dependencies.gltf]
version = "1.4.1"

[dependencies.image]
version = "0.25.1"
optional = true

[dependencies.indexmap]
version = "2.2.6"

[dependencies.las]
version = "0.8.7"
features = ["laz"]
optional = true

[dependencies.laz]
version = "0.9.1"
optional = true

[dependencies.meshopt]
version = "0.3.0"

[dependencies.nohash]
version = "0.2.0"

[dependencies.num]
version = "0.4.3"

[dependencies.ordered-float]
version = "4.2.0"

[dependencies.ply-rs]
version = "0.1.3"
optional = true

[dependencies.vec-x]
version = "0.8.0"

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

[features]
default = ["jamalloc"]
image = ["dep:image"]
jamalloc = ["dep:tikv-jemallocator"]
las = [
    "dep:las",
    "dep:laz",
]
ply = ["dep:ply-rs"]

[target."cfg(not(target_env = \"msvc\"))".dependencies.tikv-jemallocator]
version = "0.6.0"
optional = true