# 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-typeset"
version = "1.1.0"
authors = ["Cyril Jacquet <cyril.jacquet@ferntech.eu>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Turns rich text documents into GPU-ready glyph quads"
homepage = "https://github.com/jacquetc/text-typeset"
documentation = "https://docs.rs/text-typeset/"
readme = "README.md"
keywords = [
    "text",
    "document",
    "format",
]
categories = [
    "text-editors",
    "text-processing",
]
license = "MPL-2.0"
repository = "https://github.com/jacquetc/text-typeset"

[features]
default = ["text-document"]
text-document = ["dep:text-document"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.etagere]
version = "0.3"

[dependencies.fontdb]
version = "0.23.0"

[dependencies.rustybuzz]
version = "0.20"

[dependencies.swash]
version = "0.2"

[dependencies.text-document]
version = "1.3.0"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.unicode-bidi]
version = "0.3"

[dependencies.unicode-linebreak]
version = "0.1"

[dev-dependencies.text-document]
version = "1.3.0"

[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
