# 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-core"
version = "0.2.1"
authors = ["hxyulin <hxyulin@proton.me>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core utilities for Astrelis engine"
readme = false
license = "MIT"
repository = "https://github.com/hxyulin/astrelis"

[features]
default = [
    "winit",
    "profiling",
]
profiling = [
    "dep:puffin",
    "dep:puffin_http",
]
winit = ["dep:winit"]

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

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

[[bench]]
name = "collections"
path = "benches/collections.rs"
harness = false

[[bench]]
name = "sparse_set"
path = "benches/sparse_set.rs"
harness = false

[dependencies.ahash]
version = "0.8"

[dependencies.bytemuck]
version = "1.23.1"
features = ["derive"]

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

[dependencies.mint]
version = "0.5.9"

[dependencies.puffin]
version = "0.19.1"
optional = true

[dependencies.puffin_http]
version = "0.16"
optional = true

[dependencies.static_assertions]
version = "1.1"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[dependencies.winit]
version = "0.30.12"
features = ["rwh_05"]
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
