[package]
name = "hjkl-editor"
description = "Front-door for the hjkl modal editor stack: vim engine + rope buffer + registers + ex commands, in one crate."
keywords = ["vim", "editor", "modal", "ex"]
categories = ["text-editors"]
version = "0.4.6"
edition = "2024"
license = "MIT"
repository = "https://github.com/kryptic-sh/hjkl-editor"
authors = ["mxaddict <mxaddict@kryptic.sh>"]
rust-version = "1.95"
homepage = "https://hjkl.kryptic.sh"
readme = "README.md"

[features]
default = ["serde", "crossterm", "ratatui"]
serde = ["hjkl-engine/serde"]
crossterm = ["hjkl-engine/crossterm"]
# Pulls the engine's `ratatui` adapter surface (Style intern, mouse
# Rect helpers) plus the buffer's ratatui Widget impl. Default-on for
# back-compat; non-terminal hosts opt out via `default-features = false`.
ratatui = ["hjkl-engine/ratatui", "hjkl-buffer/ratatui"]

[dependencies]
hjkl-engine = { version = "0.6.8", default-features = false }
hjkl-buffer = "0.6"
regex = "1"

[dev-dependencies]
crossterm = { version = "0.29.0", features = ["event-stream"] }
insta = "1"

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