# 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.90.0"
name = "astrelis-geometry"
version = "0.2.4"
authors = ["hxyulin <hxyulin@proton.me>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Customizable 2D geometry rendering for Astrelis Game Engine"
readme = false
license = "MIT"
repository = "https://github.com/hxyulin/astrelis"

[features]
chart = []
chart-text = [
    "chart",
    "astrelis-text",
]
default = ["chart"]
egui-integration = [
    "dep:egui",
    "chart",
]
ui-integration = [
    "dep:astrelis-ui",
    "dep:astrelis-winit",
    "chart",
]

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

[[example]]
name = "chart_with_text"
path = "examples/chart_with_text.rs"
required-features = ["chart-text"]

[[example]]
name = "egui_chart"
path = "examples/egui_chart.rs"
required-features = ["egui-integration"]

[[example]]
name = "interactive_chart"
path = "examples/interactive_chart.rs"
required-features = ["ui-integration"]

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

[[example]]
name = "live_chart"
path = "examples/live_chart.rs"
required-features = ["ui-integration"]

[[example]]
name = "multi_axis_chart"
path = "examples/multi_axis_chart.rs"
required-features = ["ui-integration"]

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

[[example]]
name = "streaming_chart"
path = "examples/streaming_chart.rs"
required-features = ["ui-integration"]

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

[dependencies.ahash]
version = "0.8"

[dependencies.astrelis-core]
version = "0.2.4"

[dependencies.astrelis-render]
version = "0.2.4"

[dependencies.astrelis-text]
version = "0.2.4"
optional = true

[dependencies.astrelis-ui]
version = "0.2.4"
optional = true

[dependencies.astrelis-winit]
version = "0.2.4"
optional = true

[dependencies.bitflags]
version = "2.4"

[dependencies.bytemuck]
version = "1.23.1"

[dependencies.egui]
version = "0.33.3"
optional = true

[dependencies.glam]
version = "0.30.9"
features = [
    "mint",
    "bytemuck",
]

[dependencies.lyon]
version = "1.0"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.astrelis-egui]
version = "0.2.4"

[dev-dependencies.astrelis-winit]
version = "0.2.4"

[dev-dependencies.egui]
version = "0.33.3"

[dev-dependencies.pollster]
version = "0.4.0"
