# 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"
name = "spottedcat"
version = "1.0.1"
authors = ["Arion <arion.dsh@gmail.com>"]
build = false
exclude = [
    "examples/android/**",
    "examples/ios/**",
    "examples/wasm/**",
    "assets/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rusty SpottedCat simple game engine"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/arion-dsh/spottedcat"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
effects = ["model-3d"]
gltf = [
    "dep:gltf",
    "model-3d",
    "utils",
]
model-3d = []
sensors = []
utils = ["dep:image"]

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "happy_tree_desktop"
path = "examples/happy_tree_desktop.rs"
required-features = ["utils"]

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

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

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

[[example]]
name = "gltf_loader"
path = "examples/gltf_loader.rs"
required-features = ["gltf"]

[[example]]
name = "animated_gltf"
path = "examples/animated_gltf.rs"
required-features = ["gltf"]

[[example]]
name = "billboard"
path = "examples/billboard.rs"
required-features = ["model-3d"]

[[example]]
name = "fog_world"
path = "examples/fog_world.rs"
required-features = [
    "model-3d",
    "effects",
]

[[example]]
name = "instancing_test"
path = "examples/instancing_test.rs"
required-features = ["model-3d"]

[[example]]
name = "metal_sphere"
path = "examples/metal_sphere.rs"
required-features = ["model-3d"]

[[example]]
name = "advanced_model_shader_full"
path = "examples/advanced_model_shader_full.rs"
required-features = ["model-3d"]

[[example]]
name = "mixed_model_shader_stress"
path = "examples/mixed_model_shader_stress.rs"
required-features = ["model-3d"]

[[example]]
name = "model_test"
path = "examples/model_test.rs"
required-features = ["model-3d"]

[[example]]
name = "atlas_subimage_move_test"
path = "examples/atlas_subimage_move_test.rs"
required-features = ["utils"]

[[example]]
name = "render_state_stress"
path = "examples/render_state_stress.rs"
required-features = ["model-3d"]

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

[dependencies.ab_glyph]
version = "0.2"

[dependencies.anyhow]
version = "1"

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

[dependencies.cpal]
version = "0.17.3"
features = ["wasm-bindgen"]

[dependencies.gltf]
version = "1.4.1"
optional = true

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

[dependencies.symphonia]
version = "0.5"
features = ["all"]

[dependencies.ultraviolet]
version = "0.10.0"
features = ["bytemuck"]

[dependencies.wgpu]
version = "28"
features = ["gles"]

[dev-dependencies.fundsp]
version = "0.18"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.console_error_panic_hook]
version = "0.1"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.web-sys]
version = "0.3"
features = [
    "console",
    "Document",
    "Element",
    "HtmlCanvasElement",
    "Window",
]

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.web-time]
version = "1"

[target.'cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))'.dependencies.gilrs]
version = "0.11"

[target.'cfg(not(target_os = "android"))'.dependencies.winit]
version = "0.30"

[target.'cfg(target_os = "android")'.dependencies.android-activity]
version = "0.6.1"
features = ["game-activity"]

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.21"

[target.'cfg(target_os = "android")'.dependencies.ndk]
version = "0.9.0"

[target.'cfg(target_os = "android")'.dependencies.ndk-sys]
version = "0.6"

[target.'cfg(target_os = "android")'.dependencies.rwh_06]
version = "0.6"
package = "raw-window-handle"

[target.'cfg(target_os = "ios")'.dependencies.block2]
version = "0.6.2"

[target.'cfg(target_os = "ios")'.dependencies.objc2]
version = "0.6.3"

[target.'cfg(target_os = "ios")'.dependencies.objc2-core-motion]
version = "0.3.2"

[target.'cfg(target_os = "ios")'.dependencies.objc2-foundation]
version = "0.3.2"
