# 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 = "deb822-lossless"
version = "0.4.2"
authors = ["Jelmer Vernooĳ <jelmer@debian.org>"]
build = false
include = [
    "bench/Sources",
    "src/*.rs",
    "bench/*.rs",
    "examples/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lossless parser for deb822 files"
homepage = "https://github.com/jelmer/deb822-lossless"
readme = "README.md"
keywords = [
    "debian",
    "deb822",
    "control",
    "rfc822",
    "edit",
]
categories = ["parser-implementations"]
license = "Apache-2.0"
repository = "https://github.com/jelmer/deb822-lossless"

[badges.maintenance]
status = "actively-maintained"

[features]
deb822-fast = ["dep:deb822-fast"]
default = ["serde"]
python-debian = ["dep:pyo3"]
serde = ["dep:serde"]

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

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

[[bench]]
name = "parse_lossless"
path = "bench/bench_lossless.rs"
harness = false

[[bench]]
name = "parse_lossy"
path = "bench/bench_lossy.rs"
harness = false

[dependencies.deb822-fast]
version = "0.2.0"
optional = true

[dependencies.pyo3]
version = ">=0.27, <0.28"
optional = true

[dependencies.regex]
version = ">=1, <2"

[dependencies.rowan]
version = "0.16"

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

[dev-dependencies.criterion]
version = ">=0.5, <0.8"
features = ["html_reports"]
