# 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_assets"
version = "0.2.0"
authors = ["Pan Xinmiao <pan_xinmiao@163.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Asset loading and management for the Myth engine."
homepage = "https://github.com/panxinmiao/myth"
readme = false
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]
default = []
gltf = ["dep:gltf"]
gltf-meshopt = [
    "gltf",
    "dep:meshopt",
]
http = [
    "dep:ehttp",
    "dep:url",
]

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

[dependencies.base64]
version = "0.22"

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

[dependencies.ehttp]
version = "0.7.1"
features = ["native-async"]
optional = true
default-features = false

[dependencies.flume]
version = "0.12.0"

[dependencies.futures]
version = "0.3.32"

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

[dependencies.gltf]
version = "1.4.2"
features = [
    "extensions",
    "KHR_materials_pbrSpecularGlossiness",
    "KHR_materials_specular",
    "KHR_materials_emissive_strength",
    "EXT_texture_webp",
    "KHR_materials_ior",
    "KHR_texture_transform",
    "allow_empty_animation_target_node",
    "EXT_meshopt_compression",
    "KHR_mesh_quantization",
]
optional = true
package = "myth-gltf"

[dependencies.half]
version = "2.7"

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

[dependencies.log]
version = "0.4"

[dependencies.meshopt]
version = "0.6"
optional = true

[dependencies.myth_animation]
version = "0.2.0"

[dependencies.myth_core]
version = "0.2.0"

[dependencies.myth_resources]
version = "0.2.0"

[dependencies.myth_scene]
version = "0.2.0"

[dependencies.parking_lot]
version = "0.12"

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

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

[dependencies.serde_json]
version = "1.0"

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

[dependencies.smallvec]
version = "1.15"

[dependencies.url]
version = "2.5"
optional = true

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

[dependencies.wgpu]
version = "29.0.1"
features = ["wgsl"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.parking_lot]
version = "0.12"
features = ["deadlock_detection"]

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

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.94"

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.94"

[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]
