-
-
Notifications
You must be signed in to change notification settings - Fork 145
/
Cargo.toml
87 lines (76 loc) · 2.18 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
78
79
80
81
82
83
84
85
86
87
[package]
name = "comrak"
version = "0.32.0"
authors = ["Asherah Connor <[email protected]>", "Brett Walker <[email protected]>", "gjtorikian"]
rust-version = "1.62.1"
description = "A 100% CommonMark-compatible GitHub Flavored Markdown parser and formatter"
documentation = "https://docs.rs/comrak"
homepage = "https://github.com/kivikakk/comrak"
repository = "https://github.com/kivikakk/comrak"
readme = "README.md"
keywords = ["markdown", "commonmark"]
license = "BSD-2-Clause"
categories = ["text-processing", "parsing", "command-line-utilities"]
exclude = [
"/hooks/*",
"/script/*",
"/vendor/*",
"/.travis.yml",
"/Makefile",
"/spec_out.txt",
]
resolver = "2"
edition = "2018"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
lto = true
[[bin]]
name = "comrak"
required-features = ["cli", "syntect"]
doc = false
[dependencies]
typed-arena = "2.0.2"
entities = "1.0.1"
unicode_categories = "0.1.1"
memchr = "2"
shell-words = { version = "1.0", optional = true }
slug = "0.1.4"
emojis = { version = "0.6.2", optional = true }
arbitrary = { version = "1", optional = true, features = ["derive"] }
bon = { version = "3", optional = true }
caseless = "0.2.1"
[dev-dependencies]
ntest = "0.9"
toml = "0.7.3"
[features]
default = ["cli", "syntect", "bon"]
cli = ["clap", "shell-words", "xdg"]
shortcodes = ["emojis"]
bon = ["dep:bon"]
[target.'cfg(all(not(windows), not(target_arch="wasm32")))'.dependencies]
xdg = { version = "^2.5", optional = true }
[target.'cfg(target_arch="wasm32")'.dependencies]
syntect = { version = "5.0", optional = true, default-features = false, features = [
"default-fancy",
] }
clap = { version = "4.0.32", optional = true, features = ["derive", "string"] }
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
syntect = { version = "5.0", optional = true, default-features = false, features = [
"default-themes",
"default-syntaxes",
"html",
"regex-onig",
] }
clap = { version = "4.0", optional = true, features = [
"derive",
"string",
"wrap_help",
] }
[[example]]
name = "syntect"
required-features = [ "syntect" ]
[[example]]
name = "s-expr"
required-features = [ "bon" ]