text-document-io 1.9.0

Import/export for text-document: plain text, Markdown, HTML, LaTeX, DOCX
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 = "text-document-io"
version = "1.9.0"
authors = ["Cyril Jacquet <cyril.jacquet@ferntech.eu>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Import/export for text-document: plain text, Markdown, HTML, LaTeX, DOCX"
homepage = "https://github.com/ferntech-eu/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/ferntech-eu/text-document"

[features]
pdf = [
    "dep:typst",
    "dep:typst-layout",
    "dep:typst-pdf",
    "dep:typst-as-lib",
]

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.docx-rs]
version = "0.4"

[dependencies.epub-builder]
version = "0.8.3"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "webp",
    "gif",
]
default-features = false

[dependencies.macros]
version = "1.9.0"
package = "text-document-macros"

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"

[dependencies.serde]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.typst]
version = "=0.15.0"
optional = true

[dependencies.typst-as-lib]
version = "=0.16.0"
optional = true
default-features = false

[dependencies.typst-layout]
version = "=0.15.0"
optional = true

[dependencies.typst-pdf]
version = "=0.15.0"
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.png]
version = "0.17"

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

[dev-dependencies.test_harness]
version = "1.9.0"
package = "text-document-test-harness"

[dev-dependencies.zip]
version = "6"

[lints.rust]