Debian Codegraph @

Cargo.toml.orig

raw
1 [package]
2 name = "comrak"
3 version = "0.54.0"
4 authors = ["Asherah Connor <[email protected]>", "Brett Walker <[email protected]>", "gjtorikian"]
5 rust-version = "1.85"
6 description = "A 100% CommonMark-compatible GitHub Flavored Markdown parser and formatter"
7 documentation = "https://docs.rs/comrak"
8 homepage = "https://github.com/kivikakk/comrak"
9 repository = "https://github.com/kivikakk/comrak"
10 readme = "README.md"
11 keywords = ["markdown", "commonmark"]
12 license = "BSD-2-Clause"
13 categories = ["text-processing", "parsing", "command-line-utilities"]
14 exclude = [
15 "/hooks/*",
16 "/script/*",
17 "/vendor/*",
18 "/.travis.yml",
19 "/Makefile",
20 "/spec_out.txt",
21 ]
22 resolver = "3"
23 edition = "2024"
24
25 [package.metadata.docs.rs]
26 all-features = true
27 rustdoc-args = ["--cfg", "docsrs"]
28
29 [profile.release]
30 lto = true
31 codegen-units = 1
32
33 [[bin]]
34 name = "comrak"
35 required-features = ["cli"]
36 doc = false
37
38 [[bench]]
39 name = "progits"
40 harness = false
41
42 [dependencies]
43 typed-arena = "2.0.2"
44 shell-words = { version = "1.1", optional = true }
45 emojis = { version = "0.8", optional = true }
46 arbitrary = { version = "1", optional = true, features = ["derive"] }
47 bon = { version = "3", optional = true }
48 caseless = "0.2"
49 fmt2io = { version = "1.0.0", optional = true }
50 jetscii = "0.5.3"
51 phf = "0.13"
52 rustc-hash = "2"
53 smallvec = "1.13"
54 finl_unicode = { version = "1.4.0", features = ["categories"] }
55
56 [dev-dependencies]
57 ntest = "0.9"
58 percent-encoding-rfc3986 = "0.1.3"
59 strum = { version = "0.28.0", features = ["derive"] }
60 toml = "1.0.6"
61 slug = "0.1.4"
62 pretty_assertions = "1.4.1"
63 glob = "0.3.3"
64 divan = { version = "4.2.0", package = "codspeed-divan-compat" }
65
66 [build-dependencies]
67 entities = "1"
68 phf_codegen = "0.13"
69
70 [features]
71 default = ["cli", "syntect-onig", "bon"]
72 cli = ["clap", "bon", "shell-words", "xdg", "fmt2io", "shortcodes", "phoenix_heex", "attributes"]
73 shortcodes = ["emojis"]
74 phoenix_heex = []
75 attributes = []
76 bon = ["dep:bon"]
77 # `syntect` enables the syntect plugin but is backend-neutral; pick a regex
78 # backend via `syntect-onig` (C Oniguruma, the default) or `syntect-fancy`
79 # (pure-Rust fancy-regex). The fancy backend avoids linking onig_sys, which is
80 # required on hosts that already export Oniguruma symbols (e.g. Ruby on Windows
81 # mingw), where a second static copy collides at link time.
82 syntect = ["dep:syntect"]
83 syntect-onig = ["syntect", "syntect/regex-onig"]
84 syntect-fancy = ["syntect", "syntect/regex-fancy"]
85
86 [target.'cfg(all(not(windows), not(target_arch="wasm32")))'.dependencies]
87 xdg = { version = "3", optional = true }
88
89 [target.'cfg(any(target_arch = "wasm32", target_os = "ios"))'.dependencies]
90 syntect = { version = "5", optional = true, default-features = false, features = [
91 "default-fancy",
92 ] }
93
94 [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dependencies]
95 syntect = { version = "5", optional = true, default-features = false, features = [
96 "default-themes",
97 "default-syntaxes",
98 "html",
99 ] }
100
101 [target.'cfg(target_arch="wasm32")'.dependencies]
102 clap = { version = "4", optional = true, features = ["derive", "string"] }
103
104 [target.'cfg(not(target_arch="wasm32"))'.dependencies]
105 clap = { version = "4", optional = true, features = [
106 "derive",
107 "string",
108 "wrap_help",
109 ] }
110
111 [[example]]
112 name = "syntect"
113 required-features = [ "syntect" ]
114
115 [[example]]
116 name = "s-expr"
117 required-features = [ "bon" ]