# 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.95"
name = "hjkl-buffer"
version = "0.8.0"
authors = ["mxaddict <mxaddict@kryptic.sh>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rope-backed text buffer with cursor and edits. Pre-1.0 churn."
homepage = "https://hjkl.kryptic.sh"
readme = "README.md"
keywords = [
    "rope",
    "buffer",
    "text",
    "editor",
]
categories = [
    "text-editors",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/kryptic-sh/hjkl-buffer"

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
ratatui = ["dep:ratatui"]

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

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

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

[dependencies.ratatui]
version = "0.30"
optional = true

[dependencies.regex]
version = "1"

[dependencies.unicode-width]
version = "0.2"

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

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