# 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.92"
name = "myth-engine"
version = "0.2.0"
authors = ["Pan Xinmiao <pan_xinmiao@163.com>"]
build = false
exclude = [
    "examples/assets/*",
    "docs/images/*",
    ".github/*",
    ".gitignore",
    ".vscode/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A developer-friendly, high-performance 3D rendering engine written in Rust."
homepage = "https://github.com/panxinmiao/myth"
readme = "README.md"
keywords = [
    "3d",
    "gamedev",
    "wgpu",
    "webgpu",
    "graphics",
]
categories = [
    "game-development",
    "graphics",
    "rendering::engine",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/panxinmiao/myth"
resolver = "2"

[features]
debug_view = [
    "myth_render/debug_view",
    "myth_scene/debug_view",
]
default = [
    "winit",
    "gltf",
    "http",
]
gltf = ["myth_assets/gltf"]
gltf-meshopt = [
    "gltf",
    "myth_assets/gltf-meshopt",
]
http = ["myth_assets/http"]
rdg_inspector = ["myth_render/rdg_inspector"]
winit = ["myth_app/winit"]

[lib]
name = "myth"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

[[example]]
name = "gltf_shower"
path = "examples/gltf_shower/main.rs"

[[example]]
name = "gltf_viewer"
path = "examples/gltf_viewer/main.rs"

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

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

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

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

[[example]]
name = "lut_baker"
path = "examples/tools/lut_baker.rs"

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

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

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

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

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

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

[[example]]
name = "showcase"
path = "examples/showcase/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.glam]
version = "0.32.1"
features = [
    "bytemuck",
    "scalar-math",
]

[dependencies.log]
version = "0.4"

[dependencies.myth_animation]
version = "0.2.0"

[dependencies.myth_app]
version = "0.2.0"

[dependencies.myth_assets]
version = "0.2.0"

[dependencies.myth_core]
version = "0.2.0"

[dependencies.myth_render]
version = "0.2.0"

[dependencies.myth_resources]
version = "0.2.0"

[dependencies.myth_scene]
version = "0.2.0"

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.bytemuck]
version = "1.25"
features = [
    "derive",
    "min_const_generics",
]

[dev-dependencies.env_logger]
version = "0.11.10"

[dev-dependencies.half]
version = "2.7"

[dev-dependencies.image]
version = "0.25.10"
features = [
    "png",
    "jpeg",
    "hdr",
    "exr",
    "webp",
]
default-features = false

[dev-dependencies.parking_lot]
version = "0.12"

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

[dev-dependencies.rfd]
version = "0.17.2"

[dev-dependencies.rustc-hash]
version = "2.1.2"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dev-dependencies.slotmap]
version = "1.1.1"
features = ["serde"]

[dev-dependencies.uuid]
version = "1.23.0"
features = [
    "v4",
    "v5",
    "fast-rng",
    "macro-diagnostics",
    "js",
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.8.2"
features = [
    "html_reports",
    "html_reports",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.egui]
version = "0.34.1"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.egui-wgpu]
version = "0.34.1"
features = ["winit"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.egui-winit]
version = "0.34.1"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ehttp]
version = "0.7.1"
features = ["native-async"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.51.0"
features = [
    "fs",
    "rt-multi-thread",
    "macros",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.wgpu]
version = "29.0.1"
features = ["wgsl"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.winit]
version = "0.30.13"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.console_error_panic_hook]
version = "0.1.7"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.console_log]
version = "1.0"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.egui]
version = "0.34.1"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.egui-wgpu]
version = "0.34.1"
features = ["winit"]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.egui-winit]
version = "0.34.1"
features = ["links"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.ehttp]
version = "0.7.1"
features = ["native-async"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.tokio]
version = "1.51.0"
features = [
    "macros",
    "sync",
    "rt",
    "time",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen]
version = "0.2.117"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-futures]
version = "0.4.67"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.67"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.web-sys]
version = "0.3.94"
features = [
    "Window",
    "Document",
    "Element",
    "DomTokenList",
    "Location",
    "UrlSearchParams",
]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wgpu]
version = "29.0.1"
features = [
    "wgsl",
    "webgpu",
    "fragile-send-sync-non-atomic-wasm",
]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.winit]
version = "0.30.13"

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
ref_as_ptr = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
