-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
75 lines (66 loc) · 1.81 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
[package]
name = "ethsbell-rewrite"
version = "2.2.1"
authors = [
"Willow Carlson-Huber <[email protected]>",
"Albert Portnoy <[email protected]",
]
edition = "2018"
default-run = "ethsbell-rewrite"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = { version = "=0.5.0-rc.3", optional = true, features = ["json"] }
rocket_dyn_templates = { version = "=0.1.0-rc.3", optional = true, features = [
"tera",
] }
serde = { version = "1.0.125", features = ["derive"] }
serde_json = "1.0.64"
chrono = { version = "0.4.19", features = ["serde"] }
reqwest = { version = "0.11.3", features = ["blocking"], optional = true }
serde_regex = "1.1.0"
regex = "1.4.6"
urlencoding = "2.0.0"
thiserror = "1.0.24"
base64 = "0.13.0"
rand = "0.8.3"
rocket_prometheus = { version = "=0.10.0-rc.3", optional = true }
rocket_okapi = { version = "=0.8.0-rc.3", optional = true, features = [
"swagger",
] }
schemars = { version = "0.8.3", features = ["chrono"], optional = true }
okapi = { version = "0.5.0-alpha-1", features = [
"derive_json_schema",
], optional = true }
structopt = { version = "0.3.26", optional = true }
# Required to allow ical generation to compile for WASM
getrandom = { version = "0.2.8", optional = true }
[build-dependencies]
subprocess = "*"
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "ethsbell-rewrite"
required-features = ["ws"]
path = "src/main.rs"
[[bin]]
name = "bell_mkschema"
required-features = ["ws"]
path = "src/bin/bell_mkschema.rs"
[[bin]]
name = "bell_cli"
required-features = ["cli"]
path = "src/bin/bell_cli.rs"
[features]
ws = [
"rocket",
"pull",
"rocket_okapi",
"rocket_dyn_templates",
"schemars",
"okapi",
"rocket_prometheus",
]
default = ["ws"]
wasm = ["getrandom/js"]
pull = ["reqwest"]
cli = ["structopt", "reqwest"]