From 00b17ca17ea0d9503aab3175732977a2119962b9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 3 Nov 2022 18:18:46 -0700 Subject: use dotenv to pick up environment variables --- adenosine-pds/Cargo.toml | 1 + adenosine-pds/src/bin/adenosine-pds.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'adenosine-pds') diff --git a/adenosine-pds/Cargo.toml b/adenosine-pds/Cargo.toml index 432e893..190ba00 100644 --- a/adenosine-pds/Cargo.toml +++ b/adenosine-pds/Cargo.toml @@ -40,6 +40,7 @@ ucan = "0.7.0-alpha.1" # TODO: replace this with data-encoding or similar; this is only needed for ucan_p256 stuff bs58 = "*" async-trait = "*" +dotenv = "*" [package.metadata.deb] maintainer = "Bryan Newbold " diff --git a/adenosine-pds/src/bin/adenosine-pds.rs b/adenosine-pds/src/bin/adenosine-pds.rs index cfae0ca..ce36587 100644 --- a/adenosine-pds/src/bin/adenosine-pds.rs +++ b/adenosine-pds/src/bin/adenosine-pds.rs @@ -61,6 +61,7 @@ enum Command { } fn main() -> Result<()> { + dotenv::dotenv().ok(); let opt = Opt::from_args(); let log_level = match opt.verbose { -- cgit v1.2.3