Skip to content

Commit cf14451

Browse files
authored
anyrun: Daemonization & anyrun-provider (#251)
* [anyrun] Initial work on provider based search results * [anyrun] Begun work on daemonizing Anyrun * anyrun,nix: Further refined provider support, daemon mode The Nix flake now offers a daemon for Anyrun, which is enabled by default. * anyrun: Fixed zombie processes & accidental local dep * anyrun: Pass env from launcher to provider, fix HM module, remove unused imports * anyrun: Fixed eventual panic when the provider path is invalid * nix: Updated anyrun-provider input lock * anyrun: Fix provider stdin stream not closing * Removed anyrun-interface crate from the repo * anyrun: Better error/warning messages for configuration issues with daemonization/the provider * deleted anyrun-interface
1 parent c787318 commit cf14451

File tree

17 files changed

+1304
-912
lines changed

17 files changed

+1304
-912
lines changed

Cargo.lock

Lines changed: 311 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ members = [
44
"anyrun",
55
"anyrun-plugin",
66
"anyrun-macros",
7-
"anyrun-interface",
87
"plugins/applications",
98
"plugins/symbols",
109
"plugins/rink",

anyrun-interface/Cargo.toml

Lines changed: 0 additions & 9 deletions
This file was deleted.

anyrun-interface/src/lib.rs

Lines changed: 0 additions & 68 deletions
This file was deleted.

anyrun-macros/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ pub fn init(_attr: TokenStream, item: TokenStream) -> TokenStream {
182182
.into()
183183
}
184184

185+
// FIXME: Needs to be split into a separate crate
185186
#[proc_macro_derive(ConfigArgs, attributes(config_args))]
186187
pub fn config_args(item: TokenStream) -> TokenStream {
187188
let item = parse_macro_input!(item as syn::DeriveInput);
@@ -252,7 +253,7 @@ pub fn config_args(item: TokenStream) -> TokenStream {
252253
};
253254

254255
quote! {
255-
#[derive(::clap::Args)]
256+
#[derive(::clap::Args, ::std::clone::Clone, ::std::fmt::Debug, ::serde::Serialize, ::serde::Deserialize)]
256257
#struct_decl {
257258
#fields
258259
}

anyrun-plugin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77

88
[dependencies]
99
abi_stable = "0.11.1"
10-
anyrun-interface = { path = "../anyrun-interface" }
10+
anyrun-interface = { git = "https://github.com/anyrun-org/anyrun-interface" }
1111
anyrun-macros = { path = "../anyrun-macros" }

anyrun/Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ anyrun-macros = { path = "../anyrun-macros" }
1010
abi_stable = "0.11.1"
1111
ron = "0.8.0"
1212
serde = { version = "1.0.210", features = ["derive"] }
13-
anyrun-interface = { path = "../anyrun-interface" }
13+
anyrun-interface = { git = "https://github.com/anyrun-org/anyrun-interface" }
14+
anyrun-provider-ipc = { git = "https://github.com/anyrun-org/anyrun-provider" }
1415
wl-clipboard-rs = "0.9.1"
1516
nix = { version = "0.29", default-features = false, features = ["process"] }
1617
clap = { version = "4.2.7", features = ["derive"] }
17-
chrono = { version = "0.4.38", default-features = false, features = ["clock"] }
18-
relm4 = "0.9.1"
19-
gtk4-layer-shell = "0.5.0"
20-
gtk4 = "0.9.0"
18+
relm4 = { git = "https://github.com/Kirottu/Relm4", branch = "service" }
19+
gtk4-layer-shell = "0.6.3"
20+
gtk4 = "0.10.0"
21+
serde_json = "1.0.143"

0 commit comments

Comments
 (0)