mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
* html, xfdf: add standalone HTML writer and XFDF annotation/FDF grammar (#778) * html, xfdf: escape image mime attribute and clarify rich_plain vs direct_text
33 lines
1.1 KiB
TOML
33 lines
1.1 KiB
TOML
[package]
|
|
name = "craft-html"
|
|
description = "The bottom layer of reading and writing HTML: a tolerant tokenizer, character references, escaping and the charset a page declares. No tree, no CSS, no rendering."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# HTML documents: read into and written from the craft-flow model and a craft-wordmodel Document.
|
|
flow = ["dep:craft-codepage", "dep:craft-flow", "dep:craft-math", "dep:craft-mime", "dep:craft-wordmodel", "dep:encoding_rs"]
|
|
# Standalone portable HTML document writer.
|
|
standalone = ["dep:craft-mime"]
|
|
|
|
[dependencies]
|
|
craft-codepage = { workspace = true, optional = true }
|
|
craft-flow = { workspace = true, optional = true }
|
|
craft-math = { workspace = true, optional = true }
|
|
craft-mime = { workspace = true, features = ["detect"], optional = true }
|
|
craft-wordmodel = { workspace = true, optional = true }
|
|
encoding_rs = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|
|
|
|
[[test]]
|
|
name = "doc"
|
|
required-features = ["flow"]
|