1
0
Fork 0

Compare commits

..

4 commits

4 changed files with 92 additions and 2 deletions

64
src-tauri/.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,64 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'openvcs_lib'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=openvcs"
],
"filter": {
"name": "openvcs_lib",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'openvcs'",
"cargo": {
"args": [
"build",
"--bin=openvcs",
"--package=openvcs"
],
"filter": {
"name": "openvcs",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'openvcs'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=openvcs",
"--package=openvcs"
],
"filter": {
"name": "openvcs",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

View file

@ -8,6 +8,14 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
opt-level = "z" # optimize for size
lto = true # link-time optimizations
codegen-units = 1 # single codegen unit for better inlining
panic = "abort" # no unwind tables
debug = false # drop debug info
strip = "symbols" # remove symbol table (cargo ≥1.62)
[lib] [lib]
# The `_lib` suffix may seem redundant but it is necessary # The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name. # to make the lib name unique and wouldn't conflict with the bin name.
@ -16,7 +24,7 @@ name = "openvcs_lib"
crate-type = ["staticlib", "cdylib", "rlib"] crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies] [build-dependencies]
tauri-build = { version = "2", features = [] } tauri-build = { version = "2", default-features = false, features = [] }
[dependencies] [dependencies]
tauri = { version = "2", features = [] } tauri = { version = "2", features = [] }

13
src-tauri/scripts/run.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
# Disable WebKits DMA-BUF path to avoid GBM/Wayland errors
export WEBKIT_DISABLE_DMABUF_RENDERER=1
# (Optional) force Wayland or X11 if you ever need it:
# export GDK_BACKEND=wayland
# export GDK_BACKEND=x11
# Launch your app
exec cargo run "$@"

View file

@ -21,7 +21,12 @@
}, },
"bundle": { "bundle": {
"active": true, "active": true,
"targets": "all", "targets": [
"rpm",
"app",
"deb",
"msi"
],
"icon": [ "icon": [
"icons/32x32.png", "icons/32x32.png",
"icons/128x128.png", "icons/128x128.png",