1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

bumb dependencies except for bollard

This commit is contained in:
Robin Appelman 2023-02-23 14:37:10 +01:00
commit e70764fbb5
3 changed files with 461 additions and 292 deletions

729
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package] [package]
name = "haze" name = "haze"
version = "1.2.0" version = "1.2.1"
authors = ["Robin Appelman <robin@icewind.nl>"] authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018" edition = "2018"
repository = "https://github.com/icewind1991/haze" repository = "https://github.com/icewind1991/haze"
@ -10,27 +10,27 @@ description = "Easy setup and management of Nextcloud test instances using docke
[dependencies] [dependencies]
bollard = "0.13.0" bollard = "0.13.0"
maplit = "1.0.2" maplit = "1.0.2"
camino = { version = "1.0.9", features = ["serde1"] } camino = { version = "1.1.3", features = ["serde1"] }
tokio = { version = "1.20.1", features = ["fs", "macros", "signal"] } tokio = { version = "1.25.0", features = ["fs", "macros", "signal"] }
parse-display = "0.5.5" parse-display = "0.8.0"
futures-util = "0.3.21" futures-util = "0.3.26"
termion = "1.5.6" termion = "2.0.1"
opener = "0.5.0" opener = "0.5.2"
toml = "0.5.9" toml = "0.7.2"
directories-next = "2.0.0" directories-next = "2.0.0"
serde = "1.0.142" serde = "1.0.152"
petname = "1.1.2" petname = "1.1.3"
reqwest = { version = "0.11.11", default-features = false } reqwest = { version = "0.11.14", default-features = false }
tar = "0.4.38" tar = "0.4.38"
flate2 = "1.0.24" flate2 = "1.0.25"
async-trait = "0.1.57" async-trait = "0.1.64"
enum_dispatch = "0.3.8" enum_dispatch = "0.3.11"
miette = { version = "5.2.0", features = ["fancy"] } miette = { version = "5.5.0", features = ["fancy"] }
shell-words = "1.1.0" shell-words = "1.1.0"
warp = "0.3" warp = "0.3"
tokio-stream = { version = "0.1.9", features = ["net"] } tokio-stream = { version = "0.1.12", features = ["net"] }
tracing = "0.1.35" tracing = "0.1.37"
tracing-subscriber = "0.3.14" tracing-subscriber = "0.3.16"
hyper-reverse-proxy = { version = "0.5.2-dev", git = "https://github.com/felipenoris/hyper-reverse-proxy" } hyper-reverse-proxy = { version = "0.5.2-dev", git = "https://github.com/felipenoris/hyper-reverse-proxy" }
hyper = "0.14.24" hyper = "0.14.24"

View file

@ -4,7 +4,7 @@ use miette::{IntoDiagnostic, Report, Result, WrapErr};
use serde::Deserialize; use serde::Deserialize;
use std::convert::TryFrom; use std::convert::TryFrom;
use std::env::var; use std::env::var;
use std::fs::{read, read_to_string}; use std::fs::read_to_string;
use std::net::IpAddr; use std::net::IpAddr;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
@ -192,10 +192,10 @@ impl HazeConfig {
file.to_string_lossy() file.to_string_lossy()
))); )));
} }
let content = read(&file) let content = read_to_string(&file)
.into_diagnostic() .into_diagnostic()
.wrap_err("Failed to read config file")?; .wrap_err("Failed to read config file")?;
toml::from_slice(&content) toml::from_str(&content)
.into_diagnostic() .into_diagnostic()
.wrap_err("Failed to parse config file") .wrap_err("Failed to parse config file")
} }