chore: migrate to dotenvy

This commit is contained in:
Matej Janezic 2023-01-31 19:54:16 +01:00
parent 0000024004
commit 000002501a
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
4 changed files with 9 additions and 9 deletions

10
Cargo.lock generated
View File

@ -24,9 +24,9 @@ dependencies = [
[[package]] [[package]]
name = "aoc" name = "aoc"
version = "24.0.0" version = "25.0.0"
dependencies = [ dependencies = [
"dotenv", "dotenvy",
"elves", "elves",
"hashbrown 0.13.1", "hashbrown 0.13.1",
"hex-literal", "hex-literal",
@ -97,10 +97,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
[[package]] [[package]]
name = "dotenv" name = "dotenvy"
version = "0.15.0" version = "0.15.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
[[package]] [[package]]
name = "either" name = "either"

View File

@ -2,7 +2,7 @@
name = "aoc" name = "aoc"
description = "template for advent of code" description = "template for advent of code"
readme = "README.md" readme = "README.md"
version = "24.0.0" version = "25.0.0"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
authors = ["Matej Janežič <janezic.mj@gmail.com>"] authors = ["Matej Janežič <janezic.mj@gmail.com>"]
@ -10,7 +10,7 @@ repository = "https://github.com/janezicmatej/aoc-template.git"
default-run = "aoc" default-run = "aoc"
[dependencies] [dependencies]
dotenv = "0.15.0" dotenvy = "0.15.6"
elves = "0.2.0" elves = "0.2.0"
hashbrown = "0.13.1" hashbrown = "0.13.1"
hex-literal = "0.3.4" hex-literal = "0.3.4"

View File

@ -1,4 +1,4 @@
use dotenv::dotenv; use dotenvy::dotenv;
use reqwest::{header, Client}; use reqwest::{header, Client};
use std::{env, fs::OpenOptions, io::Write, process}; use std::{env, fs::OpenOptions, io::Write, process};

View File

@ -1,4 +1,4 @@
use dotenv::dotenv; use dotenvy::dotenv;
use itertools::Itertools; use itertools::Itertools;
use reqwest::{header, Client}; use reqwest::{header, Client};
use std::{env, fs::OpenOptions, io::Write, process}; use std::{env, fs::OpenOptions, io::Write, process};