ftml 1.42.1

Foundation Text Markup Language - a library to render Wikidot text as HTML
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 = "ftml"
version = "1.42.1"
authors = ["Emmie Smith <emmie.maeda@gmail.com>"]
build = "build.rs"
exclude = [
    ".gitignore",
    ".editorconfig",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foundation Text Markup Language - a library to render Wikidot text as HTML"
readme = "README.md"
keywords = [
    "wikidot",
    "wikijump",
    "ftml",
    "parsing",
    "html",
]
categories = ["parser-implementations"]
license = "AGPL-3.0-or-later"
repository = "https://github.com/scpwiki/ftml"

[features]
default = [
    "html",
    "mathml",
]
html = ["lightningcss"]
mathml = [
    "html",
    "latex2mathml",
]

[lib]
name = "ftml"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

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

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

[dependencies.cfg-if]
version = "1"

[dependencies.entities]
version = "1"

[dependencies.enum-map]
version = "3"

[dependencies.icu_calendar]
version = "2.2"

[dependencies.icu_datetime]
version = "2.2"
features = ["compiled_data"]

[dependencies.icu_decimal]
version = "2.2"

[dependencies.icu_experimental]
version = "0.5"
features = ["compiled_data"]

[dependencies.icu_locale]
version = "2.2"

[dependencies.latex2mathml]
version = "0.2"
optional = true

[dependencies.lightningcss]
version = "1.0.0-alpha.70"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.maplit]
version = "1"

[dependencies.pest]
version = "2"

[dependencies.pest_derive]
version = "2"

[dependencies.rand]
version = "0.10"

[dependencies.ref-map]
version = "0.2"

[dependencies.regex]
version = "1.13"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1"

[dependencies.serde_repr]
version = "0.1"

[dependencies.str-macro]
version = "1"

[dependencies.strum]
version = "0.28"

[dependencies.strum_macros]
version = "0.28"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "macros",
    "parsing",
    "serde",
    "serde-human-readable",
]
default-features = false

[dependencies.unicase]
version = "2"

[dependencies.wikidot-normalize]
version = "0.12"

[dependencies.writeable]
version = "0.6"

[dev-dependencies.clap]
version = "4"

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

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

[build-dependencies.built]
version = "0.8"
features = [
    "chrono",
    "git2",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom3]
version = "0.3"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dependencies.self_cell]
version = "1.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
features = ["serde-serialize"]

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = ["console"]

[lints.rust]
missing_debug_implementations = "deny"
unsafe_code = "forbid"

[profile.release]
lto = true