# 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 = "cascade-rhythm"
version = "0.4.0"
authors = ["Gleb Matsko"]
build = false
exclude = [
    "docs/",
    ".github/",
    ".claude/",
    ".superpowers/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal rhythm game with automatic beatmap generation from any audio file"
homepage = "https://github.com/glebmatz/cascade"
documentation = "https://github.com/glebmatz/cascade#readme"
readme = "README.md"
keywords = [
    "rhythm",
    "game",
    "tui",
    "terminal",
    "music",
]
categories = [
    "games",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/glebmatz/cascade"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
pkg-fmt = "tgz"
bin-dir = "{ name }-{ target }/{ bin }{ binary-ext }"

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

[[bin]]
name = "cascade"
path = "src/main.rs"

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.crossterm]
version = "0.28"

[dependencies.dirs]
version = "6"

[dependencies.ratatui]
version = "0.29"

[dependencies.rodio]
version = "0.20"
features = [
    "mp3",
    "vorbis",
    "flac",
]

[dependencies.rustfft]
version = "6.2"

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

[dependencies.serde_json]
version = "1"

[dependencies.symphonia]
version = "0.5"
features = [
    "mp3",
    "ogg",
    "flac",
    "mkv",
    "pcm",
    "adpcm",
    "vorbis",
]

[dependencies.toml]
version = "0.8"

[dev-dependencies.tempfile]
version = "3"

[profile.release]
lto = "thin"
codegen-units = 1
strip = true
