editor-core 0.3.0

A headless editor engine focused on state management, Unicode-aware text measurement, and coordinate conversion.
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.91"
name = "editor-core"
version = "0.3.0"
authors = ["Chen Xu <windoze@0d0a.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A headless editor engine focused on state management, Unicode-aware text measurement, and coordinate conversion."
homepage = "https://github.com/windoze/editor-core"
documentation = "https://docs.rs/editor-core/"
readme = "README.md"
keywords = [
    "editor",
    "text-editor",
    "unicode",
    "lsp",
    "headless",
]
categories = [
    "text-editors",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/windoze/editor-core"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.editor-core-lang]
version = "0.3.0"

[dependencies.regex]
version = "1.11"

[dependencies.ropey]
version = "1.6"

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

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

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

[dev-dependencies.rand]
version = "0.8"