Improve packaging (#328)

* Add gpgui-helper (#326)

* Add packaging
This commit is contained in:
Kevin Yue authored and GitHub committed 2024-02-26 23:33:39 +08:00
1 parent 5767c252b7
commit 47776d54d9
70 files changed
+5161 -313

No files matched your search

+5
View File
@@ -6,6 +6,7 @@ use gpapi::{
utils::{crypto::Crypto, lock_file::LockFile, redact::Redaction},
};
use log::{info, warn};
use serde::de::DeserializeOwned;
use tokio::{
net::TcpListener,
sync::{mpsc, watch, RwLock},
@@ -38,6 +39,10 @@ impl WsServerContext {
}
}
pub fn decrypt<T: DeserializeOwned>(&self, encrypted: Vec<u8>) -> anyhow::Result<T> {
self.crypto.decrypt(encrypted)
}
pub async fn send_event(&self, event: WsEvent) {
let connections = self.connections.read().await;