/
Cargo.toml
145 lines (129 loc) · 3.95 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "stencila"
version = "0.86.1"
authors = ["Stencila <hello@stenci.la>"]
edition = "2018"
# Compile time feature flags. See https://www.worthe-it.co.za/blog/2018-11-18-compile-time-feature-flags-in-rust.html
# All features are on by default, use `--no-default-features --features="json http ..."` to
# cherry pick certain features.
# Our use of features is somewhat over the top but should hopefully allow us to create more
# minimal binaries as needed (e.g. for creating really small container images).
[features]
cli = ["template-handlebars", "structopt"]
serve = []
serve-stdio = []
serve-http = ["warp", "jsonwebtoken"]
serve-ws = ["warp", "jsonwebtoken"]
serve-static = ["warp", "rust-embed"]
request = []
request-stdio = []
request-docker = ["bollard"]
request-http = ["reqwest", "jsonwebtoken"]
request-ws = ["tokio-tungstenite", "jsonwebtoken"]
plugins = ["jsonschema", "semver"]
plugins-docker = ["plugins", "bollard"]
plugins-binary = ["plugins", "self_update"]
plugins-javascript = ["plugins"]
plugins-python = ["plugins"]
plugins-r = ["plugins"]
plugins-link = ["plugins"]
upgrade = ["self_update"]
config = ["humantime", "toml", "validator"]
format-json = []
format-yaml = ["serde_yaml"]
format-html = ["html-escape"]
query-jsonptr = []
query-jmespath = ["jmespatch"]
template-handlebars = ["handlebars"]
watch = ["notify"]
default = [
"cli",
"serve",
"serve-stdio",
"serve-http",
"serve-ws",
"serve-static",
"request",
"request-docker",
"request-http",
"request-stdio",
"request-ws",
"plugins",
"plugins-binary",
"plugins-docker",
"plugins-link",
"plugins-javascript",
"plugins-python",
"plugins-r",
"upgrade",
"config",
"format-json",
"format-yaml",
"format-html",
"query-jsonptr",
"query-jmespath",
"template-handlebars",
"watch",
]
[dependencies]
ansi_term = "0.12.1"
async-trait = "0.1.50"
base64 = "0.13.0"
bollard = { version = "0.10.1", optional = true }
chrono = "0.4.19"
crossbeam-channel = "0.5.1"
defaults = "0.2.0"
dirs-next = "2.0.0"
enum_dispatch = "0.3.7"
eyre = "0.6.5"
futures = "0.3.15"
gitignore = "1.0.7"
glob = "0.3.0"
handlebars = { version = "4.0.0", optional = true }
html-escape = { version = "0.2.9", optional = true }
humantime = { version = "2.1.0", optional = true }
ignore = "0.4.18"
jmespatch = { version = "0.3.0", optional = true }
jsonschema = { version = "0.9.0", optional = true }
jsonwebtoken = { version = "7.2.0", optional = true }
maplit = "1.0.2"
mime_guess = "2.0.3"
nanoid = "0.4.0"
notify = { version = "4.0.17", optional = true }
once_cell = "1.8.0"
pathdiff = "0.2.0"
rand = "0.8.3"
regex = "1.5.4"
reqwest = { version = "0.11.3", optional = true, features = ["json"] }
rust-embed = { version = "5.9.0", optional = true }
schemars = { version = "0.8.3", features = ["preserve_order", "chrono"] }
self_update = { version = "0.27.0", optional = true, features = [
"archive-tar",
"archive-zip",
"compression-flate2",
"compression-zip-deflate",
] }
semver = { version = "1.0.3", optional = true }
serde = { version = "1.0.126", features = ["derive", "rc"] }
serde_json = { version = "1.0.64", features = ["preserve_order"] }
serde_with = "1.9.4"
serde_yaml = { version = "0.8.17", optional = true }
stencila-schema = "1.8.1"
structopt = { version = "0.3.21", optional = true }
strum = { version = "0.21", features = ["derive"] }
strum_macros = "0.21.1"
thiserror = "1.0.25"
tokio = { version = "1.6.1", features = ["full"] }
tokio-tungstenite = { version = "0.14.0", optional = true }
toml = { version = "0.5.8", optional = true }
tracing = "0.1.26"
tracing-appender = "0.1.2"
tracing-error = "0.1.2"
tracing-serde = "0.1.2"
tracing-subscriber = "0.2.18"
url = "2.2.2"
validator = { version = "0.13.0", features = ["derive"], optional = true }
warp = { version = "0.3.1", optional = true }
[dev-dependencies]
pretty_assertions = "0.7.2"