File: list_variables.rs

package info (click to toggle)
rust-dotenvy 0.15.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
use dotenvy::{dotenv_iter, Error};

fn main() -> Result<(), Error> {
    dotenvy::dotenv()?;
    for item in dotenv_iter()? {
        let (key, val) = item?;
        println!("{}={}", key, val);
    }
    Ok(())
}