# 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.88.0"
name = "slumber"
version = "5.0.0"
authors = ["Lucas Pickering <lucas@lucaspickering.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal-based HTTP client"
homepage = "https://slumber.lucaspickering.me"
readme = "README.md"
keywords = [
    "rest",
    "http",
    "terminal",
    "tui",
]
license = "MIT"
repository = "https://github.com/LucasPickering/slumber"

[package.metadata.release]
pre-release-hook = [
    "mise",
    "run",
    "gifs",
    "--check",
]

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
replace = """
## [Unreleased] - ReleaseDate

<!-- ANCHOR: changelog -->

## [{{version}}] - {{date}}"""
search = '## \[Unreleased\] - ReleaseDate'

[features]
cli = ["dep:slumber_cli"]
default = [
    "cli",
    "import",
    "tui",
]
import = ["slumber_cli/import"]
tokio_tracing = ["dep:console-subscriber"]
tui = ["dep:slumber_tui"]

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

[dependencies.anyhow]
version = "1.0.0"
features = ["backtrace"]

[dependencies.console-subscriber]
version = "0.5.0"
optional = true
default-features = false

[dependencies.slumber_cli]
version = "5.0.0"
optional = true

[dependencies.slumber_tui]
version = "5.0.0"
optional = true

[dependencies.slumber_util]
version = "5.0.0"

[dependencies.tokio]
version = "1.39.2"
features = [
    "macros",
    "rt",
    "tracing",
]
default-features = false

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-subscriber]
version = "0.3.17"
features = [
    "ansi",
    "fmt",
    "registry",
]
default-features = false

[profile.dist]
lto = "thin"
inherits = "release"

[profile.test.package.proptest]
opt-level = 3

[profile.test.package.rand_chacha]
opt-level = 3
