mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 07:44:40 +00:00
The outlook feature adds MailCraft's reader of PidTagRtfCompressed ([MS-OXRTFCP]) and of the text and encapsulated HTML ([MS-OXRTFEX]) of the RTF inside, from crates/pst/src/rtf.rs at a44a450. Font charsets use this crate's charset_code_page table; code pages are decoded by craft-mime. Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>
26 lines
829 B
TOML
26 lines
829 B
TOML
[package]
|
|
name = "craft-rtf"
|
|
description = "Rich Text Format: a tokenizer, text decoding in the file's code pages, and a reader and writer for a small neutral model (paragraphs, character formatting, outline levels, tables)."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# `outlook`: compressed RTF ([MS-OXRTFCP]) and the text or encapsulated HTML ([MS-OXRTFEX]) of a
|
|
# mail item's body.
|
|
outlook = ["dep:craft-mime"]
|
|
|
|
[dependencies]
|
|
# Character sets by Windows code page number, for the `outlook` module.
|
|
craft-mime = { workspace = true, optional = true }
|
|
# The East Asian multibyte code pages (932, 936, 949, 950).
|
|
encoding_rs = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|