From 70ca346e9334c61da5b6d50cc88df80261d2188e Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 16 Oct 2021 22:17:57 +0200 Subject: [PATCH] Switched to a .env config file Signed-off-by: Louis Vallat --- .env | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 1 + 3 files changed, 9 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..3875092 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +LYCHEE_ENDPOINT="" diff --git a/Cargo.lock b/Cargo.lock index 37b9f1b..12daf1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,6 +48,12 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" +[[package]] +name = "dotenv" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" + [[package]] name = "fnv" version = "1.0.7" @@ -284,6 +290,7 @@ dependencies = [ name = "lychee_client" version = "0.1.0" dependencies = [ + "dotenv", "hyper", "hyper-tls", "tokio", diff --git a/Cargo.toml b/Cargo.toml index 7abe669..ed1c0b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,4 @@ edition = "2018" hyper = { version = "0.14", features = ["full"] } tokio = { version = "1", features = ["full"] } hyper-tls = "0.5.0" +dotenv = "0.15.0"