We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271a887 commit 7010bfeCopy full SHA for 7010bfe
.gitignore
@@ -1 +1,2 @@
1
/target
2
+.env
base/Cargo.toml
@@ -6,3 +6,4 @@ edition = "2021"
6
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
8
[dependencies]
9
+dotenv = "0.15.0"
base/src/main.rs
@@ -1,3 +1,7 @@
+use dotenv;
+
3
fn main() {
- println!("Hello, world!");
4
+ dotenv::dotenv().ok();
5
+ println!{"{}", dotenv::var("TEST_VAR").unwrap()};
}
0 commit comments