# 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.95"
name = "runner-run"
version = "0.8.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "runner"
description = "Universal project task runner"
homepage = "https://runner.kjanat.dev"
readme = "README.md"
keywords = [
    "automation",
    "build-tool",
    "cli",
    "task-runner",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/kjanat/runner/"

[[package.metadata.authors]]
name = "Kaj Kowalski"
email = "info+runner@kajkowalski.nl"

[package.metadata.npm]
name = "runner-run"
subpkgscope = "@runner-run"

[package.metadata.npm.bugs]
url = "https://github.com/kjanat/runner/issues"

[package.metadata.npm.repository]
type = "git"
url = "git+https://github.com/kjanat/runner.git"

[package.metadata.npm.engines]
node = ">=18"

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

[features]
default = ["run"]
run = []

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

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

[[bin]]
name = "run"
path = "src/bin/run.rs"
required-features = ["run"]

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = [
    "cargo",
    "derive",
    "env",
    "string",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4"
features = ["unstable-dynamic"]

[dependencies.colored]
version = "3"

[dependencies.json5]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.shlex]
version = "1"

[dependencies.toml]
version = "1.1"
features = [
    "parse",
    "serde",
]
default-features = false

[dependencies.yaml-rust2]
version = "0.11"

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

[build-dependencies.toml]
version = "1.1"
features = [
    "parse",
    "serde",
]
default-features = false

[lints.clippy]
cargo_common_metadata = "allow"
multiple_crate_versions = "allow"
redundant_pub_crate = "allow"

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

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

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

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

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

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

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

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

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

[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_docs = "warn"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "deny"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"

[profile.release]
lto = true
strip = true
