This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
use rabby_core::Workspace;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct FeatureRow {
|
||||
feature: &'static str,
|
||||
detail: &'static str,
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn workspace_summary() -> Vec<FeatureRow> {
|
||||
Workspace::feature_matrix()
|
||||
.into_iter()
|
||||
.map(|(feature, detail)| FeatureRow { feature, detail })
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.invoke_handler(tauri::generate_handler![workspace_summary])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("failed to run Rabby Tauri application");
|
||||
}
|
||||
Reference in New Issue
Block a user