cargo: Update dependencies
This commit is contained in:
Generated
+593
-237
File diff suppressed because it is too large
Load Diff
+19
-19
@@ -2,7 +2,7 @@
|
|||||||
name = "wldash"
|
name = "wldash"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
authors = ["Kenny Levinsen <kl@kl.wtf>"]
|
authors = ["Kenny Levinsen <kl@kl.wtf>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
@@ -20,31 +20,31 @@ alsa-widget = ["alsa"]
|
|||||||
pulseaudio-widget = ["libpulse-binding"]
|
pulseaudio-widget = ["libpulse-binding"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byteorder = "1.3"
|
byteorder = "1.4"
|
||||||
bitflags = "1.0"
|
bitflags = "1.3"
|
||||||
dlib = "0.4"
|
dlib = "0.5"
|
||||||
rusttype = "^0.9"
|
rusttype = "^0.9"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
nix = "0.16"
|
nix = "0.26"
|
||||||
memmap = "0.7"
|
memmap = "0.7"
|
||||||
os_pipe = "0.9"
|
os_pipe = "1.1"
|
||||||
wayland-client = { version = "0.28"}
|
wayland-client = { version = "0.29"}
|
||||||
wayland-protocols = { version = "0.28", features = ["client", "unstable_protocols"] }
|
wayland-protocols = { version = "0.29", features = ["client", "unstable_protocols"] }
|
||||||
dbus = "0.6"
|
dbus = "0.6"
|
||||||
fuzzy-matcher = "0.3"
|
fuzzy-matcher = "0.3"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
rcalc_lib = "0.9"
|
rcalc_lib = "1.0"
|
||||||
rust-ini = "0.14"
|
rust-ini = "0.18"
|
||||||
shlex = "0.1"
|
shlex = "1.1"
|
||||||
timerfd = "1.0.0"
|
timerfd = "1.4.0"
|
||||||
walkdir = "2.3.2"
|
walkdir = "2.3"
|
||||||
itertools = "0.10.3"
|
itertools = "0.10"
|
||||||
|
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = { version = "1.0", optional = true }
|
serde_json = { version = "1.0", optional = true }
|
||||||
serde_yaml = { version = "0.8", optional = true }
|
serde_yaml = { version = "0.9", optional = true }
|
||||||
|
|
||||||
libpulse-binding = { version = "2.22", optional = true }
|
libpulse-binding = { version = "2.26", optional = true }
|
||||||
alsa = { version = "0.4.0", optional = true }
|
alsa = { version = "0.7.0", optional = true }
|
||||||
fontconfig = "0.5.0"
|
fontconfig = "0.6.0"
|
||||||
unicode-segmentation = "1.6.0"
|
unicode-segmentation = "1.10.0"
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ impl AppInner {
|
|||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
});
|
});
|
||||||
|
|
||||||
shell_surface.set_keyboard_interactivity(1);
|
shell_surface.set_keyboard_interactivity(zwlr_layer_surface_v1::KeyboardInteractivity::Exclusive);
|
||||||
shell_surface.set_size(1, 1);
|
shell_surface.set_size(1, 1);
|
||||||
surface.set_buffer_scale(scale as i32);
|
surface.set_buffer_scale(scale as i32);
|
||||||
surface.commit();
|
surface.commit();
|
||||||
|
|||||||
+8
-12
@@ -182,10 +182,9 @@ fn create_shm_fd() -> io::Result<RawFd> {
|
|||||||
memfd::MemFdCreateFlag::MFD_CLOEXEC,
|
memfd::MemFdCreateFlag::MFD_CLOEXEC,
|
||||||
) {
|
) {
|
||||||
Ok(fd) => return Ok(fd),
|
Ok(fd) => return Ok(fd),
|
||||||
Err(nix::Error::Sys(Errno::EINTR)) => continue,
|
Err(Errno::EINTR) => continue,
|
||||||
Err(nix::Error::Sys(Errno::ENOSYS)) => break,
|
Err(Errno::ENOSYS) => break,
|
||||||
Err(nix::Error::Sys(errno)) => return Err(io::Error::from(errno)),
|
Err(errno) => return Err(io::Error::from(errno)),
|
||||||
Err(err) => unreachable!(err),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,14 +205,12 @@ fn create_shm_fd() -> io::Result<RawFd> {
|
|||||||
) {
|
) {
|
||||||
Ok(fd) => match mman::shm_unlink(mem_file_handle.as_str()) {
|
Ok(fd) => match mman::shm_unlink(mem_file_handle.as_str()) {
|
||||||
Ok(_) => return Ok(fd),
|
Ok(_) => return Ok(fd),
|
||||||
Err(nix::Error::Sys(errno)) => match unistd::close(fd) {
|
Err(errno) => match unistd::close(fd) {
|
||||||
Ok(_) => return Err(io::Error::from(errno)),
|
Ok(_) => return Err(io::Error::from(errno)),
|
||||||
Err(nix::Error::Sys(errno)) => return Err(io::Error::from(errno)),
|
Err(errno) => return Err(io::Error::from(errno)),
|
||||||
Err(err) => panic!("{}", err),
|
|
||||||
},
|
},
|
||||||
Err(err) => panic!("{}", err),
|
|
||||||
},
|
},
|
||||||
Err(nix::Error::Sys(Errno::EEXIST)) => {
|
Err(Errno::EEXIST) => {
|
||||||
// If a file with that handle exists then change the handle
|
// If a file with that handle exists then change the handle
|
||||||
mem_file_handle = format!(
|
mem_file_handle = format!(
|
||||||
"/smithay-client-toolkit-{}",
|
"/smithay-client-toolkit-{}",
|
||||||
@@ -221,9 +218,8 @@ fn create_shm_fd() -> io::Result<RawFd> {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Err(nix::Error::Sys(Errno::EINTR)) => continue,
|
Err(Errno::EINTR) => continue,
|
||||||
Err(nix::Error::Sys(errno)) => return Err(io::Error::from(errno)),
|
Err(errno) => return Err(io::Error::from(errno)),
|
||||||
Err(err) => unreachable!(err),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -256,9 +256,11 @@ functions:
|
|||||||
|
|
||||||
lazy_static::lazy_static!(
|
lazy_static::lazy_static!(
|
||||||
pub static ref XKBCOMMON_OPTION: Option<XkbCommon> = {
|
pub static ref XKBCOMMON_OPTION: Option<XkbCommon> = {
|
||||||
XkbCommon::open("libxkbcommon.so.0")
|
unsafe {
|
||||||
|
XkbCommon::open("libxkbcommon.so.0")
|
||||||
.or_else(|_| XkbCommon::open("libxkbcommon.so"))
|
.or_else(|_| XkbCommon::open("libxkbcommon.so"))
|
||||||
.ok()
|
.ok()
|
||||||
|
}
|
||||||
};
|
};
|
||||||
pub static ref XKBCOMMON_HANDLE: &'static XkbCommon = {
|
pub static ref XKBCOMMON_HANDLE: &'static XkbCommon = {
|
||||||
XKBCOMMON_OPTION.as_ref().expect("Library libxkbcommon.so could not be loaded.")
|
XKBCOMMON_OPTION.as_ref().expect("Library libxkbcommon.so could not be loaded.")
|
||||||
|
|||||||
@@ -15,11 +15,7 @@ const SELEM_ID: u32 = 0u32;
|
|||||||
fn alsa_error_to_io_error(fail: &'static str, err: &alsa::Error) -> ::std::io::Error {
|
fn alsa_error_to_io_error(fail: &'static str, err: &alsa::Error) -> ::std::io::Error {
|
||||||
let kind = ::std::io::ErrorKind::Other;
|
let kind = ::std::io::ErrorKind::Other;
|
||||||
let func = err.func();
|
let func = err.func();
|
||||||
let errno = err
|
::std::io::Error::new(kind, format!("{}: {}{}", fail, func, err.errno()))
|
||||||
.errno()
|
|
||||||
.map(|errno| format!("; errno = {}", errno))
|
|
||||||
.unwrap_or_default();
|
|
||||||
::std::io::Error::new(kind, format!("{}: {}{}", fail, func, errno))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ impl<'a> Widget for Calendar<'a> {
|
|||||||
let cals = self.sections - 1;
|
let cals = self.sections - 1;
|
||||||
let pre_cals = cals / 2;
|
let pre_cals = cals / 2;
|
||||||
for _ in 0..pre_cals {
|
for _ in 0..pre_cals {
|
||||||
t = t.pred().with_day(1).unwrap();
|
t = t.pred_opt().unwrap().with_day(1).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
if o != 0 {
|
if o != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user