mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
bumb dependencies
This commit is contained in:
parent
0f003cd8af
commit
d38a7ff0e5
4 changed files with 308 additions and 333 deletions
637
Cargo.lock
generated
637
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -2,10 +2,10 @@
|
||||||
name = "palantir"
|
name = "palantir"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
color-eyre = "0.5"
|
color-eyre = "0.6.1"
|
||||||
warp = "0.3"
|
warp = "0.3"
|
||||||
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
||||||
ctrlc = { version = "3", features = ["termination"] }
|
ctrlc = { version = "3", features = ["termination"] }
|
||||||
|
|
@ -15,9 +15,9 @@ once_cell = "1"
|
||||||
hostname = "0.3"
|
hostname = "0.3"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
ahash = "0.7"
|
ahash = "0.7"
|
||||||
bollard = "0.11"
|
bollard = "0.13.0"
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
libmdns = "0.6"
|
libmdns = "0.7"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
iai = "0.1"
|
iai = "0.1"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
use bollard::container::{Stats, StatsOptions};
|
use bollard::container::{Stats, StatsOptions};
|
||||||
use bollard::models::ContainerSummaryInner;
|
use bollard::models::ContainerSummary;
|
||||||
use bollard::Docker;
|
use bollard::Docker;
|
||||||
use color_eyre::Result;
|
use color_eyre::Result;
|
||||||
use futures_util::future::ready;
|
use futures_util::future::ready;
|
||||||
|
|
@ -45,7 +45,7 @@ impl Container {
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn from(stats: Stats, container: ContainerSummaryInner) -> Self {
|
fn from(stats: Stats, container: ContainerSummary) -> Self {
|
||||||
Container {
|
Container {
|
||||||
name: stats.name,
|
name: stats.name,
|
||||||
image: container.image.unwrap_or_default(),
|
image: container.image.unwrap_or_default(),
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ impl IntoIterator for Temperatures {
|
||||||
type IntoIter = IntoIter<Self::Item, 2>;
|
type IntoIter = IntoIter<Self::Item, 2>;
|
||||||
|
|
||||||
fn into_iter(self) -> Self::IntoIter {
|
fn into_iter(self) -> Self::IntoIter {
|
||||||
IntoIter::new([("cpu", self.cpu), ("gpu", self.gpu)])
|
[("cpu", self.cpu), ("gpu", self.gpu)].into_iter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue