Skip to content

Commit 8c62f09

Browse files
committed
feat: scaffold tauri v2 support (requires rust)
1 parent c17c098 commit 8c62f09

26 files changed

+324
-1
lines changed

.gitignore

72 Bytes
Binary file not shown.

package-lock.json

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"tauri": "tauri"
1011
},
1112
"dependencies": {
1213
"@google/genai": "1.3.0",
@@ -20,6 +21,7 @@
2021
"recharts": "2.15.0"
2122
},
2223
"devDependencies": {
24+
"@tauri-apps/cli": "^2.9.6",
2325
"@types/node": "^22.14.0",
2426
"@vitejs/plugin-react": "^5.0.0",
2527
"autoprefixer": "^10.4.23",

src-tauri/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Generated by Tauri
6+
# will have schema files for capabilities auto-completion
7+
/gen/schemas

src-tauri/Cargo.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
name = "synapse-context-engine"
3+
version = "0.1.0"
4+
description = "Synapse Context Engine (Demo)"
5+
authors = ["Sasu"]
6+
edition = "2021"
7+
8+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9+
10+
[lib]
11+
# The `_lib` suffix may seem redundant but it is necessary
12+
# to make the lib name unique and wouldn't conflict with the bin name.
13+
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
14+
name = "synapse_context_engine_lib"
15+
crate-type = ["staticlib", "cdylib", "rlib"]
16+
17+
[build-dependencies]
18+
tauri-build = { version = "2", features = [] }
19+
20+
[dependencies]
21+
tauri = { version = "2", features = [] }
22+
tauri-plugin-opener = "2"
23+
serde = { version = "1", features = ["derive"] }
24+
serde_json = "1"
25+

src-tauri/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
tauri_build::build()
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../gen/schemas/desktop-schema.json",
3+
"identifier": "default",
4+
"description": "Capability for the main window",
5+
"windows": ["main"],
6+
"permissions": [
7+
"core:default",
8+
"opener:default"
9+
]
10+
}

src-tauri/icons/128x128.png

3.43 KB
Loading

src-tauri/icons/[email protected]

6.85 KB
Loading

src-tauri/icons/32x32.png

974 Bytes
Loading

0 commit comments

Comments
 (0)