# 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 = "text-document"
version = "1.5.0"
authors = ["Cyril Jacquet <cyril.jacquet@ferntech.eu>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rich text document editing library"
homepage = "https://github.com/jacquetc/text-document"
documentation = "https://docs.rs/text-document/"
readme = "README.md"
keywords = [
    "text",
    "document",
    "model",
    "format",
]
categories = [
    "data-structures",
    "text-editors",
    "text-processing",
    "parsing",
]
license = "MPL-2.0"
repository = "https://github.com/jacquetc/text-document"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22"

[dependencies.common]
version = "1.5.0"
package = "text-document-common"

[dependencies.frontend]
version = "1.5.0"
package = "text-document-frontend"

[dependencies.log]
version = "0.4"

[dependencies.parking_lot]
version = "0.12"

[dependencies.serde_json]
version = "1.0"

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

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

[dev-dependencies.insta]
version = "1.40"
features = [
    "yaml",
    "redactions",
]

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

[lints.rust]
