File: simple.rs

package info (click to toggle)
rust-dotenv 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 196 kB
  • sloc: makefile: 15
file content (10 lines) | stat: -rw-r--r-- 163 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use dotenv::dotenv;
use std::env;

fn main() {
    dotenv().ok();

    for (key, value) in env::vars() {
        println!("{}: {}", key, value);
    }
}