# 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"
name = "snapper-fmt"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic line break formatter for Org, LaTeX, Markdown, and plaintext"
homepage = "https://snapper.turtletech.us"
readme = "README.md"
keywords = [
    "semantic",
    "linebreak",
    "formatter",
    "latex",
    "orgmode",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/TurtleTech-ehf/snapper"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/snapper-fmt-{ target }.tar.xz"
bin-dir = "snapper-fmt-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "txz"

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.ec4rs]
version = "1"

[dependencies.glob]
version = "0.3"

[dependencies.imara-diff]
version = "0.2"

[dependencies.nnsplit]
version = "0.5"
features = [
    "tract-backend",
    "model-loader",
]

[dependencies.notify]
version = "7"

[dependencies.rayon]
version = "1"

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.textwrap]
version = "0.16"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "io-std",
]

[dependencies.toml]
version = "0.8"

[dependencies.tower-lsp]
version = "0.20"

[dependencies.unicode-segmentation]
version = "1"

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

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

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
lto = true
codegen-units = 1
strip = true
