# 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"
name = "fwf"
version = "0.2.1"
build = false
exclude = [
    "precommit-check.ps1",
    "profile.sh",
    "profile.ps1",
    ".github/",
    "plans/",
    "benches/data/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, flexible library for reading and writing fixed-width (flat) files with minimal overhead."
homepage = "https://github.com/almus-the-dan/fwf"
readme = "README.md"
keywords = [
    "fixed-width",
    "flat-file",
    "fwf",
    "parser",
    "writer",
]
categories = ["parsing"]
license = "MIT"
repository = "https://github.com/almus-the-dan/fwf"

[package.metadata.docs.rs]
all-features = true

[features]
encoding_rs = ["dep:encoding_rs"]
tokio = ["dep:tokio"]

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

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

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

[[bench]]
name = "roundtrip"
path = "benches/roundtrip.rs"
harness = false

[dependencies.encoding_rs]
version = "0.8.35"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "io-util",
    "fs",
]
optional = true

[dev-dependencies.clap]
version = "4"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
]

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
missing_debug_implementations = "warn"
rust_2018_idioms = "warn"

[profile.profiling]
debug = 1
inherits = "release"
