chore: strip dotenv (unmaintained) from project

It is no longer needed as configuration is loaded via. TOML or direct env if appropriate.
This commit is contained in:
Paul Makles
2024-11-27 17:05:11 +00:00
parent b9ae333b02
commit 4c00a7dfb7
5 changed files with 0 additions and 14 deletions

8
Cargo.lock generated
View File

@@ -2004,12 +2004,6 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257"
[[package]]
name = "dotenv"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f"
[[package]] [[package]]
name = "dtoa" name = "dtoa"
version = "1.0.9" version = "1.0.9"
@@ -5652,7 +5646,6 @@ dependencies = [
"async-std", "async-std",
"cached", "cached",
"config", "config",
"dotenv",
"futures-locks", "futures-locks",
"log", "log",
"once_cell", "once_cell",
@@ -5720,7 +5713,6 @@ dependencies = [
"bitfield", "bitfield",
"chrono", "chrono",
"dashmap", "dashmap",
"dotenv",
"env_logger", "env_logger",
"futures", "futures",
"impl_ops", "impl_ops",

View File

@@ -15,7 +15,6 @@ default = ["test"]
[dependencies] [dependencies]
# Utility # Utility
dotenv = "0.15.0"
config = "0.13.3" config = "0.13.3"
cached = "0.44.0" cached = "0.44.0"
once_cell = "1.18.0" once_cell = "1.18.0"

View File

@@ -287,8 +287,6 @@ pub async fn config() -> Settings {
/// Configure logging and common Rust variables /// Configure logging and common Rust variables
pub async fn setup_logging(release: &'static str, dsn: String) -> Option<sentry::ClientInitGuard> { pub async fn setup_logging(release: &'static str, dsn: String) -> Option<sentry::ClientInitGuard> {
dotenv::dotenv().ok();
if std::env::var("RUST_LOG").is_err() { if std::env::var("RUST_LOG").is_err() {
std::env::set_var("RUST_LOG", "info"); std::env::set_var("RUST_LOG", "info");
} }

View File

@@ -16,7 +16,6 @@ redis-kiss = "0.1.4"
lru = "0.7.0" lru = "0.7.0"
url = "2.2.2" url = "2.2.2"
log = "0.4.11" log = "0.4.11"
dotenv = "0.15.0"
dashmap = "5.2.0" dashmap = "5.2.0"
linkify = "0.6.0" linkify = "0.6.0"
once_cell = "1.17.1" once_cell = "1.17.1"

View File

@@ -19,8 +19,6 @@ pub struct TestHarness {
impl TestHarness { impl TestHarness {
pub async fn new() -> TestHarness { pub async fn new() -> TestHarness {
dotenv::dotenv().ok();
let client = Client::tracked(crate::web().await) let client = Client::tracked(crate::web().await)
.await .await
.expect("valid rocket instance"); .expect("valid rocket instance");