-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
79 lines (68 loc) · 2.03 KB
/
Cargo.toml
File metadata and controls
79 lines (68 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "ftml"
description = "Foundation Text Markup Language - a library to render Wikidot text as HTML"
repository = "https://github.com/scpwiki/ftml"
readme = "README.md"
license = "AGPL-3.0-or-later"
keywords = ["wikidot", "wikijump", "ftml", "parsing", "html"]
categories = ["parser-implementations"]
exclude = [".gitignore", ".editorconfig"]
version = "1.41.0"
authors = ["Emmie Smith <emmie.maeda@gmail.com>"]
edition = "2024"
[lib]
name = "ftml"
crate-type = ["cdylib", "lib"]
[features]
default = ["html", "mathml"]
# Adds HTML rendering.
html = ["lightningcss"]
# Adds LaTeX -> MathML support for rendering.
mathml = ["html", "latex2mathml"]
[dependencies]
cfg-if = "1"
enum-map = "2"
entities = "1"
icu_calendar = "2.1"
icu_decimal = "2.1"
icu_datetime = { version = "2.1", features = ["compiled_data"] }
icu_experimental = { version = "0.4", features = ["compiled_data"] }
icu_locale = "2.1"
latex2mathml = { version = "0.2", optional = true }
lightningcss = { version = "1.0.0-alpha.67", optional = true }
log = "0.4"
maplit = "1"
pest = "2"
pest_derive = "2"
rand = { version = "0.9", features = ["small_rng"] }
ref-map = "0.1"
regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_repr = "0.1"
serde-wasm-bindgen = "0.6"
str-macro = "1"
strum = "0.28"
strum_macros = "0.28"
time = { version = "0.3", features = ["formatting", "macros", "parsing", "serde", "serde-human-readable"], default-features = false }
unicase = "2"
wikidot-normalize = "0.12"
writeable = "0.6"
[build-dependencies]
built = { version = "0.8", features = ["chrono", "git2"] }
[dev-dependencies]
clap = "4"
proptest = "1"
termcolor = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
self_cell = "1.0"
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
web-sys = { version = "0.3", features = ["console"] }
# Warnings and Errors
[lints.rust]
unsafe_code = "forbid"
missing_debug_implementations = "deny"
# Performance options
[profile.release]
lto = true