This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "rabby"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
rabby-core = { path = "../rabby-core" }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
tauri = { version = "2", features = [] }
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tauri_build::build();
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -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");
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Rabby",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.thetomyou.rabby",
|
||||
"build": { "frontendDist": "../ui" },
|
||||
"app": {
|
||||
"windows": [
|
||||
{ "title": "Rabby", "width": 1240, "height": 760, "minWidth": 960, "minHeight": 620 }
|
||||
],
|
||||
"security": { "csp": null }
|
||||
},
|
||||
"bundle": { "active": true, "targets": "all" }
|
||||
}
|
||||
Reference in New Issue
Block a user