leaf-core 0.4.7

Frontend-neutral core of leaf: a byte-offset caret/selection model over twig, plus an AST→glyph map, styled with a toolkit-agnostic Style.
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"
name = "leaf-core"
version = "0.4.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Frontend-neutral core of leaf: a byte-offset caret/selection model over twig, plus an AST→glyph map, styled with a toolkit-agnostic Style."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/diaryx-org/leaf"

[features]
default = [
    "fs",
    "syntax",
]
fs = []
syntax = [
    "dep:syntect",
    "dep:two-face",
]

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

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

[dependencies.anyhow]
version = "1"

[dependencies.syntect]
version = "5.3"
features = [
    "parsing",
    "regex-fancy",
]
optional = true
default-features = false

[dependencies.twig-doc]
version = "3.11.0"

[dependencies.two-face]
version = "0.5"
features = ["syntect-fancy"]
optional = true
default-features = false

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

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