# 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 = "2021"
name = "lastfm-edit"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust crate for programmatic access to Last.fm's scrobble editing functionality via web scraping"
readme = "README.md"
license = "MIT"

[features]
cli = [
    "tokio",
    "ratatui",
    "crossterm",
    "env_logger",
]
curl = ["http-client/curl_client"]
default = ["cli"]
wasm = ["http-client/wasm_client"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.env_logger]
version = "0.11"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.http-client]
version = "^6.6.3"
default-features = false
package = "http-client-2"

[dependencies.http-types]
version = "^3.1.0"
package = "http-types-2"

[dependencies.log]
version = "0.4"

[dependencies.ratatui]
version = "0.28"
optional = true

[dependencies.regex]
version = "1.0"

[dependencies.scraper]
version = "0.23.1"

[dependencies.thiserror]
version = "1.0"

[dependencies.time]
version = "0.3"
features = ["wasm-bindgen"]

[dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true

[dependencies.urlencoding]
version = "2.1"

[dev-dependencies.tokio-test]
version = "0.4"
