IPC return the app version from Cargo.toml

This commit is contained in:
Vladimir Borisov 2022-04-28 14:18:05 +03:00
parent d40c757973
commit bab059fe3f

View file

@ -2,6 +2,8 @@ use serde::{Deserialize, Serialize};
use serde_json::{self, json};
use std::cell::RefCell;
const VERSION: &str = env!("CARGO_PKG_VERSION");
pub type Channel = RefCell<Option<(flume::Sender<String>, flume::Receiver<String>)>>;
#[derive(Serialize, Deserialize, Debug, Clone)]
@ -64,7 +66,7 @@ impl RPCResponse {
"".to_string(),
"shellVersion".to_string(),
"".to_string(),
"5.0.0".to_string(),
VERSION.to_string(),
],
],
signals: vec![],