# 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.85.0"
name = "alpm-pkginfo"
version = "0.3.1"
authors = [
    "Arne Beer <contact@arne.beer>",
    "David Runge <dvzrv@archlinux.org>",
    "Orhun Parmaksız <orhun@archlinux.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library and commandline toolkit for the specification, writing and parsing of ALPM PKGINFO files"
homepage = "https://alpm.archlinux.page"
readme = "README.md"
keywords = [
    "alpm",
    "arch",
    "linux",
    "packaging",
]
license = "Apache-2.0 OR MIT"
repository = "https://gitlab.archlinux.org/archlinux/alpm/alpm"

[features]
_winnow-debug = ["alpm-parsers/_winnow-debug"]
cli = ["dep:clap"]
default = ["cli"]

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

[[bin]]
name = "alpm-pkginfo"
path = "src/main.rs"
required-features = ["cli"]

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

[dependencies.alpm-common]
version = "0.1.2"

[dependencies.alpm-parsers]
version = "0.3.0"

[dependencies.alpm-types]
version = "0.8.0"

[dependencies.clap]
version = "4.5.19"
features = [
    "derive",
    "env",
    "string",
    "wrap_help",
]
optional = true

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

[dependencies.serde_json]
version = "1.0.133"

[dependencies.serde_with]
version = "3.11.0"

[dependencies.strum]
version = "0.27.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.0"

[dependencies.winnow]
version = "0.7.9"

[dev-dependencies.assert_cmd]
version = "2.0.11"

[dev-dependencies.insta]
version = "1.40.0"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.rstest]
version = "0.26.1"

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

[dev-dependencies.testresult]
version = "0.4.1"

[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
