Bump deps

This commit is contained in:
Σrebe - Romain GERARD
2022-05-06 18:18:38 +02:00
parent 1b1df313da
commit 73e1d47e4e
4 changed files with 64 additions and 63 deletions

View File

@@ -8,78 +8,78 @@ edition = "2018"
[dependencies]
chrono = "0.4.19"
cmd_lib = "1.0.13"
cmd_lib = "1.3.0"
derivative = "2.2.0"
git2 = "0.14.2"
git2 = "0.14.3"
walkdir = "2.3.2"
itertools = "0.10.0"
itertools = "0.10.3"
base64 = "0.13.0"
dirs = "3.0.2"
dirs = "4.0.0"
rust-crypto = "0.2.36"
retry = "1.2.1"
trust-dns-resolver = "0.20.3"
rand = "0.8.3"
semver = "1.0.4"
gethostname = "0.2.1"
reqwest = { version = "0.11.3", features = ["blocking", "json"] }
futures = "0.3.15"
retry = "1.3.1"
trust-dns-resolver = "0.21.2"
rand = "0.8.5"
semver = "1.0.9"
gethostname = "0.2.3"
reqwest = { version = "0.11.10", features = ["blocking", "json"] }
futures = "0.3.21"
timeout-readwrite = "0.3.1"
lazy_static = "1.4.0"
uuid = { version = "0.8", features = ["v4", "serde"] }
uuid = { version = "1.0.0", features = ["v4", "serde"] }
url = "2.2.2"
function_name = "0.2.0"
thiserror = "1.0.30"
strum = "0.23"
strum_macros = "0.23"
function_name = "0.2.1"
thiserror = "1.0.31"
strum = "0.24.0"
strum_macros = "0.24.0"
urlencoding = "2.1.0"
# FIXME use https://crates.io/crates/blocking instead of runtime.rs
# tar gz
flate2 = "1.0.20" # tar gz
tar = ">=0.4.36"
flate2 = "1.0.23"
tar = "0.4.38"
# logger
tracing = "0.1.26"
tracing-subscriber = "0.2.18"
tracing = "0.1.34"
tracing-subscriber = "0.3.11"
# Docker deps
# shiplift = "0.6.0"
# Filesystem
sysinfo = "0.18.2"
sysinfo = "0.23.11"
# Jinja2
tera = "1.10.0"
tera = "1.15.0"
# Json
serde = "1.0.126"
serde_json = "1.0.64"
serde_derive = "1.0.126"
serde_yaml = "0.8.23"
serde = "1.0.137"
serde_json = "1.0.81"
serde_derive = "1.0.137"
serde_yaml = "0.8.24"
# AWS deps
tokio = { version = "1.10.0", features = ["full"] }
rusoto_core = "0.47.0"
rusoto_sts = "0.47.0"
rusoto_credential = "0.47.0"
rusoto_ecr = "0.47.0"
rusoto_eks = "0.47.0"
rusoto_s3 = "0.47.0"
rusoto_dynamodb = "0.47.0"
rusoto_iam = "0.47.0"
tokio = { version = "1.18.1", features = ["full"] }
rusoto_core = "0.48.0"
rusoto_sts = "0.48.0"
rusoto_credential = "0.48.0"
rusoto_ecr = "0.48.0"
rusoto_eks = "0.48.0"
rusoto_s3 = "0.48.0"
rusoto_dynamodb = "0.48.0"
rusoto_iam = "0.48.0"
# Digital Ocean Deps
digitalocean = "0.1.1"
# Scaleway Deps
scaleway_api_rs = "=0.1.2"
scaleway_api_rs = "0.1.2"
[dev-dependencies]
test-utilities = { path = "test_utilities" }
tempdir = "0.3"
tempfile = "3.2.0"
tempdir = "0.3.7"
tempfile = "3.3.0"
maplit = "1.0.2"
tracing-test = "0.1.0"
tracing-test = "0.2.1"
[features]
default = []

View File

@@ -78,14 +78,14 @@ impl LocalDocker {
let mut disk_free_space_percent: u64 = 100;
let sys_info = sysinfo::System::new_with_specifics(RefreshKind::new().with_disks().with_disks_list());
let should_reclaim_space = sys_info.get_disks().iter().any(|disk| {
let should_reclaim_space = sys_info.disks().iter().any(|disk| {
// Check disk own the mount point we are interested in
if !mount_points_to_check.contains(&disk.get_mount_point()) {
if !mount_points_to_check.contains(&disk.mount_point()) {
return false;
}
// Check if we have hit our threshold regarding remaining disk space
disk_free_space_percent = disk.get_available_space() * 100 / disk.get_total_space();
disk_free_space_percent = disk.available_space() * 100 / disk.total_space();
if disk_free_space_percent <= DISK_FREE_SPACE_PERCENTAGE_BEFORE_PURGE {
return true;
}

View File

@@ -8,31 +8,31 @@ edition = "2018"
[dependencies]
base64 = "0.13.0"
bstr = "0.2.16"
bstr = "0.2.17"
qovery-engine = { path = "../" }
chrono = "0.4.11"
dirs = "3.0.1"
gethostname = "0.2.1"
passwords = "3.1.7"
rand = "0.7.3"
serde = "1.0"
serde_json = "1.0.57"
serde_derive = "1.0"
curl = "0.4.34"
reqwest = { version = "0.11.3", features = ["blocking", "json"] }
tracing = "0.1"
tracing-subscriber = "0.2"
retry = "1.0.0"
time = "0.2.23"
hashicorp_vault = "2.0.1"
chrono = "0.4.19"
dirs = "4.0.0"
gethostname = "0.2.3"
passwords = "3.1.9"
rand = "0.8.5"
serde = "1.0.137"
serde_json = "1.0.81"
serde_derive = "1.0.137"
curl = "0.4.43"
reqwest = { version = "0.11.10", features = ["blocking", "json"] }
tracing = "0.1.34"
tracing-subscriber = { version = "0.3.11", features = ["json"] }
retry = "1.3.1"
time = "0.3.9"
hashicorp_vault = "2.1.0"
maplit = "1.0.2"
uuid = { version = "0.8", features = ["v4"] }
const_format = "0.2.22"
uuid = { version = "1.0.0", features = ["v4"] }
const_format = "0.2.23"
url = "2.2.2"
tokio = { version = "1.10.0", features = ["full"] }
tokio = { version = "1.18.1", features = ["full"] }
# Digital Ocean Deps
digitalocean = "0.1.1"
# Scaleway Deps
scaleway_api_rs = "=0.1.2"
scaleway_api_rs = "0.1.2"

View File

@@ -408,7 +408,8 @@ pub fn generate_id() -> String {
let uuid;
loop {
let rand_string: String = thread_rng().sample_iter(Alphanumeric).take(15).collect();
let rand_string: Vec<u8> = thread_rng().sample_iter(Alphanumeric).take(15).collect();
let rand_string = String::from_utf8(rand_string).unwrap();
if rand_string.chars().next().unwrap().is_alphabetic() {
uuid = rand_string.to_lowercase();
break;