# 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"
name = "envq"
version = "0.1.2"
authors = ["Klemen Tusar <techouse@gmail.com>"]
build = false
exclude = [
    ".github/",
    ".gitattributes",
    ".gitignore",
    ".history/",
    ".vscode/**",
    "AGENTS.md",
    "about.hbs",
    "about.toml",
    "CODE-OF-CONDUCT.md",
    "fuzz/**",
    "Makefile",
    "RELEASING.md",
    "scripts/**",
    "src/**/tests.rs",
    "src/**/tests/**",
    "SECURITY.md",
    "tests/**",
    "THIRD-PARTY-LICENSES.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Byte-preserving .env query and editing tool"
homepage = "https://techouse.github.io/envq/"
readme = "README.md"
keywords = [
    "env",
    "dotenv",
    "cli",
    "configuration",
    "parser",
]
license = "BSD-3-Clause"
repository = "https://github.com/techouse/envq"

[package.metadata.deb]
maintainer = "Klemen Tusar <techouse@gmail.com>"
copyright = "2026, Klemen Tusar <techouse@gmail.com>"
depends = "$auto"
extended-description = """
envq is a byte-preserving .env query and editing tool. It preserves comments,
spacing, duplicate-key semantics, line endings, and invalid UTF-8 bytes while
performing targeted edits.
"""
section = "utils"
priority = "optional"
assets = [
    [
    "target/release/envq",
    "usr/bin/",
    "755",
],
    [
    "README.md",
    "usr/share/doc/envq/README.md",
    "644",
],
    [
    "LICENSE",
    "usr/share/doc/envq/LICENSE",
    "644",
],
    [
    "THIRD-PARTY-LICENSES.md",
    "usr/share/doc/envq/THIRD-PARTY-LICENSES.md",
    "644",
],
    [
    "target/completions/envq.bash",
    "usr/share/bash-completion/completions/envq",
    "644",
],
    [
    "target/completions/_envq",
    "usr/share/zsh/vendor-completions/_envq",
    "644",
],
    [
    "target/completions/envq.fish",
    "usr/share/fish/vendor_completions.d/envq.fish",
    "644",
],
]

[package.metadata.generate-rpm]
release = "1"

[[package.metadata.generate-rpm.assets]]
source = "target/release/envq"
dest = "/usr/bin/envq"
mode = "0755"

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/envq/README.md"
mode = "0644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "LICENSE"
dest = "/usr/share/doc/envq/LICENSE"
mode = "0644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "THIRD-PARTY-LICENSES.md"
dest = "/usr/share/doc/envq/THIRD-PARTY-LICENSES.md"
mode = "0644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "target/completions/envq.bash"
dest = "/usr/share/bash-completion/completions/envq"
mode = "0644"

[[package.metadata.generate-rpm.assets]]
source = "target/completions/_envq"
dest = "/usr/share/zsh/vendor-completions/_envq"
mode = "0644"

[[package.metadata.generate-rpm.assets]]
source = "target/completions/envq.fish"
dest = "/usr/share/fish/vendor_completions.d/envq.fish"
mode = "0644"

[features]
default = []
fuzzing = []

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

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

[dependencies.clap]
version = "4.6.1"

[dependencies.clap_complete]
version = "4.6.1"

[dependencies.imara-diff]
version = "0.2"
default-features = false

[dependencies.tempfile]
version = "3"

[dev-dependencies.serde_json]
version = "1"

[profile.release]
strip = "symbols"
