# 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 = "lastfm-client"
version = "4.0.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modern, async Rust library for fetching and analyzing Last.fm user data"
readme = "README.md"
keywords = [
    "lastfm",
    "api",
    "async",
    "music",
    "scrobble",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/TomPlanche/lastfm-client"

[features]
full = [
    "sqlite",
    "progress",
]
progress = ["dep:indicatif"]
sqlite = ["dep:rusqlite"]

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

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

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

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

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

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

[[example]]
name = "scrobbles_sqlite"
path = "examples/scrobbles_sqlite.rs"
required-features = ["sqlite"]

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

[[example]]
name = "with_progress"
path = "examples/with_progress.rs"
required-features = ["progress"]

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

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4.43"

[dependencies.csv]
version = "1.4.0"

[dependencies.dotenv]
version = "0.15.0"

[dependencies.futures]
version = "0.3.31"

[dependencies.indicatif]
version = "0.17"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.reqwest]
version = "0.12.28"
features = ["json"]

[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5.8"
features = ["serde"]

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "test-util",
    "rt-multi-thread",
]

[lints.clippy]
exhaustive_enums = "warn"
exhaustive_structs = "warn"
expect_used = "warn"
module_name_repetitions = "allow"
panic = "warn"
redundant_pub_crate = "allow"
todo = "warn"
unwrap_used = "warn"

[lints.clippy.complexity]
level = "deny"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

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

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

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
dead_code = "deny"
missing_debug_implementations = "deny"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_imports = "deny"
unused_variables = "deny"
