-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lucas Perreau
committed
May 14, 2021
1 parent
9df6a78
commit aaf8b3f
Showing
5 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "vault-credentials" | ||
description = "Rust Library that fetch secrets from Vault and load them as environment variables." | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Lucas Perreau <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT OR Apache-2.0" | ||
|
@@ -21,8 +21,8 @@ name = "vault_credentials_test" | |
path = "src/examples/bin.rs" | ||
|
||
[dependencies] | ||
reqwest = { version = "0.11", features = ["json", "blocking"] } | ||
tokio = { version = "1", features = ["full"] } | ||
reqwest = { version = "0.11.3", features = ["json"] } | ||
tokio = { version = "1.5.0", features = ["full"] } | ||
serde_json = "1.0.63" | ||
|
||
[dev-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
use dotenv::dotenv; | ||
|
||
fn main() { | ||
#[tokio::main] | ||
async fn main() { | ||
dotenv().ok(); | ||
vault_credentials::initialize(); | ||
vault_credentials::initialize().await; | ||
|
||
println!("{}", std::env::var("app.mongo.uri").unwrap()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters