chore: update deps
This commit is contained in:
parent
c02ff988c1
commit
5a6edd2b1d
5 changed files with 19 additions and 20 deletions
26
Cargo.toml
26
Cargo.toml
|
@ -8,21 +8,21 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
angular-units = "0.2.4"
|
angular-units = "0.2.4"
|
||||||
dirs = "4.0.0"
|
dirs = "4.0.0"
|
||||||
gio = "0.14.8"
|
gio = "0.17.3"
|
||||||
gtk = "0.14.3"
|
gtk = "0.16.1"
|
||||||
log = "0.4.14"
|
log = "0.4.17"
|
||||||
miette = { version = "3.2.0", features = ["fancy"] }
|
miette = { version = "5.5.0", features = ["fancy"] }
|
||||||
prisma = "0.1.1"
|
prisma = "0.1.1"
|
||||||
relm = "0.22.0"
|
relm = "0.24.0"
|
||||||
relm-derive = "0.22.0"
|
relm-derive = "0.24.0"
|
||||||
reqwest = "0.11.6"
|
reqwest = "0.11.14"
|
||||||
rhue = { git = "https://mzte.de/git/lordmzte/rhue.git" }
|
rhue = { git = "https://mzte.de/git/lordmzte/rhue.git" }
|
||||||
serde = { version = "1.0.130", features = ["derive"] }
|
serde = { version = "1.0.152", features = ["derive"] }
|
||||||
serde_json = "1.0.68"
|
serde_json = "1.0.94"
|
||||||
simplelog = "0.10.2"
|
simplelog = "0.12.1"
|
||||||
tokio = { version = "1.12.0", features = ["rt-multi-thread", "macros", "net", "sync", "fs"] }
|
tokio = { version = "1.26.0", features = ["rt-multi-thread", "macros", "net", "sync", "fs"] }
|
||||||
url = { version = "2.2.2", features = ["serde"] }
|
url = { version = "2.3.1", features = ["serde"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
gio = "0.14.8"
|
glib-build-tools = "0.17.0"
|
||||||
|
|
||||||
|
|
4
build.rs
4
build.rs
|
@ -1,6 +1,6 @@
|
||||||
fn main() {
|
fn main() {
|
||||||
gio::compile_resources(
|
glib_build_tools::compile_resources(
|
||||||
"resources",
|
&["resources"],
|
||||||
"resources/resources.gresource.xml",
|
"resources/resources.gresource.xml",
|
||||||
"compiled.gresource",
|
"compiled.gresource",
|
||||||
);
|
);
|
||||||
|
|
|
@ -70,7 +70,7 @@ impl Widget for Win {
|
||||||
|
|
||||||
Msg::PropertyChanged(prop) => {
|
Msg::PropertyChanged(prop) => {
|
||||||
let rgba = self.widgets.color_chooser.rgba();
|
let rgba = self.widgets.color_chooser.rgba();
|
||||||
let rgb = Rgb::new(rgba.red, rgba.green, rgba.blue);
|
let rgb = Rgb::new(rgba.red(), rgba.green(), rgba.blue());
|
||||||
let mut hsv = Hsv::<_, Turns<_>>::from(rgb);
|
let mut hsv = Hsv::<_, Turns<_>>::from(rgb);
|
||||||
|
|
||||||
if prop == LightProperty::Brightness {
|
if prop == LightProperty::Brightness {
|
||||||
|
@ -124,7 +124,7 @@ impl Widget for Win {
|
||||||
|
|
||||||
Msg::SetLights(lights) => {
|
Msg::SetLights(lights) => {
|
||||||
let mut lights = lights.into_iter().collect::<Vec<_>>();
|
let mut lights = lights.into_iter().collect::<Vec<_>>();
|
||||||
lights.sort_by(|&(ref a, _), &(ref b, _)| a.cmp(b));
|
lights.sort_by(|(a, _), (b, _)| a.cmp(b));
|
||||||
|
|
||||||
for c in self.widgets.lights_list.children() {
|
for c in self.widgets.lights_list.children() {
|
||||||
self.widgets.lights_list.remove(&c);
|
self.widgets.lights_list.remove(&c);
|
||||||
|
|
|
@ -18,7 +18,6 @@ async fn main() -> miette::Result<()> {
|
||||||
LevelFilter::Info
|
LevelFilter::Info
|
||||||
},
|
},
|
||||||
simplelog::ConfigBuilder::new()
|
simplelog::ConfigBuilder::new()
|
||||||
.set_time_to_local(true)
|
|
||||||
.set_location_level(LevelFilter::Error)
|
.set_location_level(LevelFilter::Error)
|
||||||
.build(),
|
.build(),
|
||||||
simplelog::TerminalMode::Stdout,
|
simplelog::TerminalMode::Stdout,
|
||||||
|
@ -45,7 +44,7 @@ async fn main() -> miette::Result<()> {
|
||||||
bridge_addr
|
bridge_addr
|
||||||
.map(|u| u.to_string())
|
.map(|u| u.to_string())
|
||||||
.unwrap_or_else(String::new),
|
.unwrap_or_else(String::new),
|
||||||
bridge_username.unwrap_or_else(String::new),
|
bridge_username.unwrap_or_default(),
|
||||||
))
|
))
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err("Window crashed :(")?;
|
.wrap_err("Window crashed :(")?;
|
||||||
|
|
|
@ -64,7 +64,7 @@ impl Runtime {
|
||||||
},
|
},
|
||||||
|
|
||||||
Ok(true) => {
|
Ok(true) => {
|
||||||
let _ = quit_ch.send(());
|
let _ = quit_ch.send(()).await;
|
||||||
},
|
},
|
||||||
|
|
||||||
_ => {},
|
_ => {},
|
||||||
|
|
Loading…
Reference in a new issue