From 82b308f8cfece80b7d715b21e20039c23f0304b5 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 21 Mar 2021 23:37:30 +0100 Subject: [PATCH] Make `tls` an optional feature --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 040f484..4b2dbca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"