Make tls an optional feature

This commit is contained in:
finga 2021-03-21 23:37:30 +01:00
parent b05acf9c72
commit 82b308f8cf

View file

@ -7,8 +7,11 @@ license = "GPL-3.0-or-later"
readme = "README.md"
description = "Trigger scripts via http(s) requests"
[features]
tls = ["rocket/tls"]
[dependencies]
rocket = { version = "0.4", features = ["tls"] }
rocket = "0.4"
rocket_contrib = { version = "0.4", default-features = false, features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"