From 25699995fce04b1e9d75a4cf163196075494fec0 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 7 Aug 2025 20:32:55 +0700 Subject: [PATCH] refactor: add cargo test --- .gitignore | 27 ++------------------------- Cargo.toml | 2 ++ Makefile | 1 + 3 files changed, 5 insertions(+), 25 deletions(-) create mode 100644 Cargo.toml diff --git a/.gitignore b/.gitignore index a20f96c30..f718cda44 100644 --- a/.gitignore +++ b/.gitignore @@ -1,46 +1,22 @@ -.idea .env -.idea - -# Jan inference error.log node_modules *.tgz -!charts/server/charts/*.tgz dist build .DS_Store -electron/renderer -electron/models -electron/docs -electron/engines -electron/themes -electron/playwright-report -server/pre-install package-lock.json coverage *.log core/lib/** - -# Turborepo -.turbo -electron/test-data -electron/test-results -core/test_results.html -coverage .yarn .yarnrc -test_results.html *.tsbuildinfo -electron/shared/** +test_results.html # docs docs/yarn.lock -electron/.version.bak -src-tauri/binaries/engines/cortex.llamacpp -src-tauri/resources/themes src-tauri/resources/lib -src-tauri/Cargo.lock src-tauri/icons !src-tauri/icons/icon.png src-tauri/gen/apple @@ -77,3 +53,4 @@ docs/.next/ # Combined output for local testing combined-output/ +target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..b9fb14e41 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,2 @@ +[workspace] +members = ["src-tauri"] \ No newline at end of file diff --git a/Makefile b/Makefile index 8ffbff54a..851ebcd7c 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ lint: install-and-build test: lint yarn download:bin yarn test + cargo test # Builds and publishes the app build-and-publish: install-and-build