It would (hopefully) have less attack surface. Electron is, after all, a whole browser, and needs to be able to do all the things a browser can do, while a native implementation can limit itself to just the very limited network interactions needed. (e.g. while XSS attacks are quite hard to do on a modern browser, a native app would make them impossible)
Does rust have a mature sandboxing environment similar to a browser though?
Legit asking as I thought that was one of the selling points to electron. It also seems like one of the easiest things a shiny new app that leans heavily on Claude is probably gonna fuck up
It would (hopefully) have less attack surface. Electron is, after all, a whole browser, and needs to be able to do all the things a browser can do, while a native implementation can limit itself to just the very limited network interactions needed. (e.g. while XSS attacks are quite hard to do on a modern browser, a native app would make them impossible)
Does rust have a mature sandboxing environment similar to a browser though?
Legit asking as I thought that was one of the selling points to electron. It also seems like one of the easiest things a shiny new app that leans heavily on Claude is probably gonna fuck up