FFI
ãRustã®cdylibãããã¯ã¨ã³ãã«Electronãããã³ãã¨ã³ãã«ãããããã¸ã§ã¯ãã3ç§ãããã§ãæ軽ä½ããcargo-generateã§ããããã¸ã§ã¯ããã³ãã¬ã¼ããå ¬éãã¾ããã template-rust-backend-with-electron-frontend https://github.com/usagi/template-â¦
(1/2) react-electron ããã¯ä»åã®ã¡ã¢ã®æ¬ç·¨ã§ã¯ãªããã®ã®ã"ããæ¹"ãããããå¤ãããããªã®ã§ä¸å¿ç¾æç¹ã§ã®æ¹æ³ãã¤ãã§ç¨åº¦ã«æ´çãã¾ãã (1) ããã¸ã§ã¯ãã®ãã£ã¬ã¯ããªã¼(=ãªãã¸ããªã¼)ã create-react-app ã§çæ: npx create-react-app myappâ¦
ä»åã®ã¡ã¢ã® Node.js ã¯: node -v v13.5.0 ã§ããå ã㯠Node.js åå¿è ããã npm i ffi ãã¦æ»ã«ã¾ãã: npm i ffi ã»ãå¤æ°ã®ã¨ã©ã¼ã観測ããæ»ãã§ãã¾ãã¾ãããâ https://www.npmjs.com/package/ffi ã©ãã©ã使ãããªããªã£ã¦ããã®ã§ä½ã代æ¿ã«ç½®ãâ¦