snapper-fmt 0.10.0

Semantic line break formatter for Org, LaTeX, Markdown, RST, and plaintext
Documentation
# 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.10.0"
build = "build.rs"
include = [
    "/src",
    "/tests",
    "/benches",
    "/examples",
    "/native",
    "/build.rs",
    "/Cargo.toml",
    "/Cargo.lock",
    "/README.md",
    "/CHANGELOG.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic line break formatter for Org, LaTeX, Markdown, RST, and plaintext"
homepage = "https://snapper.turtletech.us"
readme = "README.md"
keywords = [
    "sembr",
    "formatter",
    "markdown",
    "latex",
    "orgmode",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/TurtleTech-ehf/snapper"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[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"

[features]
cli = [
    "dep:clap",
    "dep:clap-markdown",
    "dep:rayon",
    "dep:ec4rs",
    "dep:glob",
]
default = [
    "cli",
    "neural",
    "lsp",
    "watch",
    "pandoc",
    "treesitter",
    "mcp",
]
lsp = [
    "dep:tower-lsp",
    "dep:tokio",
]
mcp = [
    "dep:rmcp",
    "dep:schemars",
]
neural = ["dep:nnsplit"]
pandoc = [
    "dep:pandoc_ast",
    "dep:libloading",
    "dep:sha2",
]
pandoc-colink = ["pandoc"]
pandoc-ffi = ["pandoc"]
treesitter = [
    "dep:tree-sitter",
    "dep:tree-sitter-rust",
    "dep:tree-sitter-python",
    "dep:tree-sitter-javascript",
    "dep:tree-sitter-c",
    "dep:tree-sitter-cpp",
    "dep:tree-sitter-go",
    "dep:tree-sitter-bash",
    "dep:tree-sitter-html",
]
wasm = [
    "dep:wasm-bindgen",
    "dep:serde-wasm-bindgen",
    "dep:js-sys",
]
watch = ["dep:notify"]

[lib]
name = "snapper_fmt"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

[[bin]]
name = "snapper-gen-docs"
path = "src/gen_docs.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.clap-markdown]
version = "0.1"
optional = true

[dependencies.ec4rs]
version = "1"
optional = true

[dependencies.glob]
version = "0.3"
optional = true

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

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.libloading]
version = "0.8"
optional = true

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

[dependencies.notify]
version = "7"
optional = true

[dependencies.pandoc_ast]
version = "0.8"
optional = true

[dependencies.pulldown-cmark]
version = "0.13"
features = ["html"]
default-features = false

[dependencies.rayon]
version = "1"
optional = true

[dependencies.regex]
version = "1"

[dependencies.rmcp]
version = "1.2"
features = [
    "server",
    "transport-io",
    "macros",
]
optional = true

[dependencies.schemars]
version = "1.0"
features = ["derive"]
optional = true

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

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.textwrap]
version = "0.16"

[dependencies.thiserror]
version = "2"

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

[dependencies.toml]
version = "0.8"

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

[dependencies.tree-sitter]
version = "0.26"
optional = true

[dependencies.tree-sitter-bash]
version = "0.25"
optional = true

[dependencies.tree-sitter-c]
version = "0.24"
optional = true

[dependencies.tree-sitter-cpp]
version = "0.23"
optional = true

[dependencies.tree-sitter-go]
version = "0.25"
optional = true

[dependencies.tree-sitter-html]
version = "0.23"
optional = true

[dependencies.tree-sitter-javascript]
version = "0.25"
optional = true

[dependencies.tree-sitter-python]
version = "0.25"
optional = true

[dependencies.tree-sitter-rust]
version = "0.24"
optional = true

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

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

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

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

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

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

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