chore: Update dependencies
This commit is contained in:
parent
1d031d99c1
commit
563128904b
7 changed files with 415 additions and 354 deletions
648
Cargo.lock
generated
648
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
|
@ -11,9 +11,9 @@ edition = "2018"
|
||||||
members = ["bin", "plugins", "service"]
|
members = ["bin", "plugins", "service"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
blocking = "1"
|
blocking = "1.1.0"
|
||||||
const_format = "0.2"
|
const_format = "0.2.22"
|
||||||
futures-lite = "1"
|
futures-lite = "1.12.0"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1.0.136", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1.0.79"
|
||||||
serde_with = "1"
|
serde_with = "1.12.0"
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@ fn main() {
|
||||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||||
.init();
|
.init();
|
||||||
|
|
||||||
std::env::args();
|
|
||||||
|
|
||||||
if let Some(plugin) = std::env::args().next() {
|
if let Some(plugin) = std::env::args().next() {
|
||||||
let start = plugin.rfind('/').map(|v| v + 1).unwrap_or(0);
|
let start = plugin.rfind('/').map(|v| v + 1).unwrap_or(0);
|
||||||
let cmd = &plugin.as_str()[start..];
|
let cmd = &plugin.as_str()[start..];
|
||||||
|
|
|
||||||
|
|
@ -7,28 +7,28 @@ edition = "2018"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-pidfd = "0.1"
|
async-pidfd = "0.1.4"
|
||||||
fork = "0.1"
|
fork = "0.1.18"
|
||||||
freedesktop-desktop-entry = "0.4.1"
|
freedesktop-desktop-entry = "0.5.0"
|
||||||
futures-lite = "1"
|
futures-lite = "1.12.0"
|
||||||
gtk = "0.14"
|
gtk = "0.15.4"
|
||||||
human_format = "1.0"
|
human_format = "1.0.3"
|
||||||
human-sort = "0.2"
|
human-sort = "0.2.2"
|
||||||
new_mime_guess = "3"
|
new_mime_guess = "4.0.1"
|
||||||
pop-launcher = { path = "../" }
|
pop-launcher = { path = "../" }
|
||||||
postage = { version = "0.4", features = ["futures-traits"] }
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||||
regex = "1"
|
regex = "1.5.4"
|
||||||
ron = "0.7"
|
ron = "0.7.0"
|
||||||
serde = "1"
|
serde = "1.0.136"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0.79"
|
||||||
slab = "0.4"
|
slab = "0.4.5"
|
||||||
smol = "1"
|
smol = "1.2.5"
|
||||||
strsim = "0.10"
|
strsim = "0.10.0"
|
||||||
tracing = "0.1"
|
tracing = "0.1.31"
|
||||||
tracing-subscriber = "0.3"
|
tracing-subscriber = "0.3.9"
|
||||||
urlencoding = "2"
|
urlencoding = "2.1.0"
|
||||||
zbus = "1"
|
zbus = "2.1.1"
|
||||||
zvariant = "2.9"
|
zvariant = "3.1.2"
|
||||||
ward = "2.1.0"
|
ward = "2.1.0"
|
||||||
isahc = "1.5.0"
|
isahc = "1.6.0"
|
||||||
url = "2.2.2"
|
url = "2.2.2"
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,8 @@ impl<W: AsyncWrite + Unpin> App<W> {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|x| x.split(':').collect::<Vec<&str>>());
|
.map(|x| x.split(':').collect::<Vec<&str>>());
|
||||||
|
|
||||||
for (src, path) in DesktopIter::new(default_paths()) {
|
for path in DesktopIter::new(default_paths()) {
|
||||||
|
let src = PathSource::guess_from(&path);
|
||||||
if let Ok(bytes) = std::fs::read_to_string(&path) {
|
if let Ok(bytes) = std::fs::read_to_string(&path) {
|
||||||
if let Ok(entry) = DesktopEntry::decode(&path, &bytes) {
|
if let Ok(entry) = DesktopEntry::decode(&path, &bytes) {
|
||||||
// Do not show if our desktop is defined in `NotShowIn`.
|
// Do not show if our desktop is defined in `NotShowIn`.
|
||||||
|
|
@ -304,6 +305,7 @@ fn path_string(source: &PathSource) -> Cow<'static, str> {
|
||||||
PathSource::LocalNix => "Nix".into(),
|
PathSource::LocalNix => "Nix".into(),
|
||||||
PathSource::Nix => "Nix (System)".into(),
|
PathSource::Nix => "Nix (System)".into(),
|
||||||
PathSource::System => "System".into(),
|
PathSource::System => "System".into(),
|
||||||
|
PathSource::SystemLocal => "Local (System)".into(),
|
||||||
PathSource::SystemFlatpak => "Flatpak (System)".into(),
|
PathSource::SystemFlatpak => "Flatpak (System)".into(),
|
||||||
PathSource::SystemSnap => "Snap (System)".into(),
|
PathSource::SystemSnap => "Snap (System)".into(),
|
||||||
PathSource::Other(other) => Cow::Owned(other.clone()),
|
PathSource::Other(other) => Cow::Owned(other.clone()),
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use freedesktop_desktop_entry as fde;
|
||||||
use futures_lite::{AsyncWrite, AsyncWriteExt, StreamExt};
|
use futures_lite::{AsyncWrite, AsyncWriteExt, StreamExt};
|
||||||
use pop_launcher::*;
|
use pop_launcher::*;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{convert::TryFrom, fs, path::PathBuf};
|
use std::{convert::TryFrom, fs, path::PathBuf, sync::Arc};
|
||||||
use zbus::Connection;
|
use zbus::Connection;
|
||||||
use zvariant::{Signature, Type};
|
use zvariant::{Signature, Type};
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@ impl Type for Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn main() {
|
pub async fn main() {
|
||||||
let connection = match Connection::new_session() {
|
let connection = match Connection::session().await {
|
||||||
Ok(conn) => conn,
|
Ok(conn) => conn,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
let mut out = async_stdout();
|
let mut out = async_stdout();
|
||||||
|
|
@ -67,24 +67,27 @@ struct App<W> {
|
||||||
impl<W: AsyncWrite + Unpin> App<W> {
|
impl<W: AsyncWrite + Unpin> App<W> {
|
||||||
fn new(connection: Connection, tx: W) -> Self {
|
fn new(connection: Connection, tx: W) -> Self {
|
||||||
Self {
|
Self {
|
||||||
desktop_entries: fde::Iter::new(fde::default_paths()).collect(),
|
desktop_entries: fde::Iter::new(fde::default_paths())
|
||||||
|
.map(|path| (fde::PathSource::guess_from(&path), path))
|
||||||
|
.collect(),
|
||||||
entries: Vec::new(),
|
entries: Vec::new(),
|
||||||
connection,
|
connection,
|
||||||
tx,
|
tx,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call_method<A: Serialize + Type>(
|
async fn call_method<A: Serialize + Type>(
|
||||||
&mut self,
|
&mut self,
|
||||||
method: &str,
|
method: &str,
|
||||||
args: &A,
|
args: &A,
|
||||||
) -> zbus::Result<zbus::Message> {
|
) -> zbus::Result<Arc<zbus::Message>> {
|
||||||
self.connection
|
self.connection
|
||||||
.call_method(Some(DEST), PATH, Some(DEST), method, args)
|
.call_method(Some(DEST), PATH, Some(DEST), method, args)
|
||||||
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn reload(&mut self) {
|
async fn reload(&mut self) {
|
||||||
if let Ok(message) = self.call_method("WindowList", &()) {
|
if let Ok(message) = self.call_method("WindowList", &()).await {
|
||||||
self.entries = message
|
self.entries = message
|
||||||
.body::<Vec<Item>>()
|
.body::<Vec<Item>>()
|
||||||
.expect("pop-shell returned invalid WindowList response");
|
.expect("pop-shell returned invalid WindowList response");
|
||||||
|
|
|
||||||
|
|
@ -5,27 +5,27 @@ license = "MPL-2.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1.0.55"
|
||||||
async-io = "1"
|
async-io = "1.6.0"
|
||||||
async-oneshot = "0.5"
|
async-oneshot = "0.5.0"
|
||||||
async-trait = "0.1"
|
async-trait = "0.1.52"
|
||||||
futures = "0.3"
|
futures = "0.3.21"
|
||||||
futures_codec = "0.4"
|
futures_codec = "0.4.1"
|
||||||
futures-lite = "1"
|
futures-lite = "1.12.0"
|
||||||
gen-z = "0.1"
|
gen-z = "0.1.0"
|
||||||
num_cpus = "1"
|
num_cpus = "1.13.1"
|
||||||
pop-launcher = { path = "../" }
|
pop-launcher = { path = "../" }
|
||||||
postage = { version = "0.4", features = ["futures-traits"] }
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||||
regex = "1.5"
|
regex = "1.5.4"
|
||||||
ron = "0.7"
|
ron = "0.7.0"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1.0.136", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1.0.79"
|
||||||
serde_with = "1"
|
serde_with = "1.12.0"
|
||||||
slab = "0.4"
|
slab = "0.4.5"
|
||||||
smol = "1"
|
smol = "1.2.5"
|
||||||
strsim = "0.10"
|
strsim = "0.10.0"
|
||||||
toml = "0.5"
|
toml = "0.5.8"
|
||||||
tracing = "0.1"
|
tracing = "0.1.31"
|
||||||
tracing-subscriber = { version = "0.3", features = ["fmt"] }
|
tracing-subscriber = { version = "0.3.9", features = ["fmt"] }
|
||||||
futures-core = "0.3.16"
|
futures-core = "0.3.21"
|
||||||
async-process = "1.3.0"
|
async-process = "1.3.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue