-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
77 lines (66 loc) · 2.05 KB
/
Cargo.toml
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
[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.28.2"
authors = ["Emmie Smith <[email protected]>"]
edition = "2021"
[lib]
name = "ftml"
crate-type = ["cdylib", "lib"]
[features]
default = ["html", "mathml"]
# Adds HTML rendering.
html = ["parcel_css"]
# Adds LaTeX -> MathML support for rendering.
mathml = ["html", "latex2mathml"]
[dependencies]
cfg-if = "1"
enum-map = "2"
entities = "1"
latex2mathml = { version = "0.2", optional = true }
log = "0.4"
maplit = "1"
once_cell = "1.17.1"
parcel_css = { version = "1.0.0-alpha.32", optional = true }
parcel_selectors = "=0.24.7" # this is *not* a required dependency,
# but we are pinning it since 0.24.8 does
# not build correctly. it is not an ftml issue.
pest = "2"
pest_derive = "2"
rand = { version = "0.8", 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.26"
strum_macros = "0.26"
time = { version = "0.3", features = ["formatting", "macros", "parsing", "serde", "serde-human-readable"], default-features = false }
tinyvec = "1"
unicase = "2"
wikidot-normalize = "0.12"
[build-dependencies]
built = { version = "0.7", features = ["chrono", "git2"] }
[dev-dependencies]
proptest = "1"
termcolor = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["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