ã¯ããã«
ãæ¬é£è¼ã§ã¯æ¬¡ã®å³ã®ãããªãçµµæãã®ãã¹ã¯ãããã¢ããªãä½ãã¾ãããããããPhotoshop風ã§ã¯ãªããIllustrator風ã®ãã¸ã§æ²ç·ã®ãçµµæãã¢ããªã§ããæåã ã1åã¯ãªãã¯ããã以éã¯ã¯ãªãã¯ï¼ãã©ãã°ãã¯ãªãã¯ï¼ãã©ãã°ã»ã»ã»ãç¹°ãè¿ããã¨ã§ã1æ¬ã«ç¹ãã£ãæ²ç·ãä¸çæ¸ãã§æãã¾ãã
ãå®æãããçµµæãã¢ããªã¯ããã¡ãã§å ¬éãã¦ãã¾ããWebãã©ã¦ã¶çã§ã¯ä½æãããã¼ã¿ãä¿åã§ãã¾ãããããã¹ã¯ãããã¢ããªçã§ã¯Rustå´ãããã¼ã¿ã®èªã¿æ¸ãããµãã¼ããã¦ãã¾ãã
ããã®ãçµµæãã¢ããªã¯ãHTML5ï¼CSSï¼JavaScriptãã§æ§æãããWebãã¼ã¸ã§ã§ãã¦ãã¾ããããã«ãTauri 2.0ã使ã£ã¦ãWebãã¼ã¸ããã¹ã¯ãããã¢ããªã¨ãã¦æ§ç¯ãã¦ãã¾ããTauri 2.0ã¯ãWebãã¼ã¸ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ãã¦ä½¿ãããããRustã§ã³ã¼ãã£ã³ã°ãã¦ãã¹ã¯ãããã¢ããªã¨ãã¦æ§ç¯ãã¾ãã
é£è¼ã®æµã
ããã®é£è¼ã¯ã以ä¸ã®ããã«é²ãã§è¡ãã¾ãã
åæ° | å 容 |
---|---|
第1å | ãRustããTauri 2.0ãã®åºç¤ç¥èã¨ç°å¢æ´å |
第2å | Rustã®åºæ¬ææ³ |
第3å | ãHTML5ï¼CSSï¼JavaScriptãã®ç¥ã£ã¦ããã¹ãææ³ |
第4å | é»è²ã®ãã¸ã§æ²ç·ãä¸çæ¸ãã§æãæ¹æ³ |
第5å | ã¢ã³ãã¥ã¨ãªãã¥ã®å®è£ |
第6å | ã¡ãã¥ã¼æ©è½ããã¡ã¤ã«ã®èªã¿è¾¼ã¿å¦çã®å®è£ |
第7å | ã¡ãã¥ã¼æ©è½ã§ä¿åã¡ãã¥ã¼ã®å®è£ |
ãã§ã¯ãRustã®åºæ¬æ å ±ããå¦ãã§ããã¾ãããã
ãRustãã®åºæ¬æ å ±
ããRustãã¯ãWindowsã§ãmacOSã§ãLinuxã§ãã¯ãã¹ãã©ãããã©ã¼ã ã«å¯¾å¿ããé«éã§ã¹ãã¼ããªããã°ã©ãã³ã°è¨èªã§ãããRustï¼ã©ã¹ãï¼ãã¨ã¯ãéã¨ããæå³ã§ãã´ãã¼ã¯ããããããã¶ã¤ã³ãããã®ã§ãããã
Rustã®ã¡ã¢ãªã®ç®¡çã®ä»æ¹ããææ権ãã¨ã¯ï¼
ãRustã¯ã¡ã¢ãªã®ç®¡çã®ä»æ¹ãã¹ãã¼ããªãã¨ã¦ãåªããããã°ã©ãã³ã°è¨èªã§ãã
ããææ権ãã¨ããç¬ç¹ãªæ¦å¿µã§ã¡ã¢ãªã管çãã¦ããã«ãæã«ã¡ã¢ãªãªã¼ã¯ãèµ·ããå¯è½æ§ãæé¤ããã®ã§ã極ãã¦ã¡ã¢ãªãªã¼ã¯ãèµ·ããã«ãããªã£ã¦ãã¾ããä¾ãã°ã次ã®å³ã®ããã«ãã¹ã³ã¼ããå ã ãå¤æ°ã«ã¡ã¢ãªãææãã権å©ãä¸ãã¦ãã¹ã³ã¼ãããæããã¨ãã«ã¯ããææ権ããæã¤å¤æ°ã®ã¡ã¢ãªã解æ¾ãã¾ãã
Rustã®è¿½å æ©è½ããã¯ã¬ã¼ããã¨ã¯ï¼
ãä»ã«ããRustã§æ¸ããããã¯ã¬ã¼ããã¨ãã追å æ©è½ã§æ©è½ãæ¡å¼µã§ãããããè»è¼ªã®åçºæãããªãã¦ãæ¸ã¿ã¾ããã¯ã¬ã¼ãã¯Pythonã§ããããã±ã¼ã¸ããã¢ã¸ã¥ã¼ã«ã«å½ããæ¡å¼µæ©è½ã®ãã¨ã§ããããã«Pythonã¨éã£ã¦ã¤ã³ã¿ããªã¿è¨èªã§ã¯ãªãã³ã³ãã¤ã«è¨èªãªã®ã§ãå¦çãé«éã§ãã
ãTauri 2.0ãã®åºæ¬æ å ±
ããTauri 2.0ãã¯ã¡ããã©Electronã®Rustçã§ãã
ãElectronã¨ã¯ãWebãã¼ã¸ãChromiumï¼ä»¥åã®Google Chromeã®HTMLã¬ã³ããªã³ã°ã¨ã³ã¸ã³ï¼ã¨ãJavaScriptã§ä½ãããNode.jsã§ãã¹ã¯ãããã¢ããªãæ§ç¯ããæè¡ã§ãã次ã®å³ã®ããã«ãã³ã¼ãã¨ãã£ã¿ãVisual Studio CodeããElectronã§éçºããã¦ãã¾ãããä»å¾ã¯Electronããããã«åªããTauri 2.0ãã¡ã¸ã£ã¼ã«ãªã£ã¦ããã¨æããã¾ãã
ãTauri 2.0ãRustã¨åæ§ã«ãWindowsããmacOSãLinuxã«ãã¯ãã¹ãã©ãããã©ã¼ã ã«å¯¾å¿ãããã¬ã¼ã ã¯ã¼ã¯ã§ãããããã«ã¹ãã¼ããã©ã³ã®iOSããiPadOSãAndroidã¢ããªãä½ãã¾ããæ¬é£è¼ã§ã¯ãã½ã³ã³åãã®ãã¹ã¯ãããã¢ããªéçºã ãã解説ãã¾ãã
Tauri 2.0ã®ä»çµã¿
ãTauri 2.0ã¯ããHTML5ï¼CSSï¼JavaScriptãã®Webãã¼ã¸ããã¹ã¯ãããã¢ããªã¨ãã¦ä½ããRustã®ã¯ã¬ã¼ãã§ãTauriãã¼ã¸ã§ã³1ç³»ã¨ã¯äºææ§ãããã¾ããã
ãTauri 1.0ã§ä½ã£ãããã¸ã§ã¯ãã¯ãTauri 2.0ã§ããã¸ã§ã¯ããä½ãç´ãã¦ç§»æ¤ããå¿ è¦ãããã¾ããæ¬é£è¼ã§ã¯ç§»æ¤ã§ã¯ãªããæåããTauri 2.0ã®ããã¸ã§ã¯ãããä½ãå§ãã¾ãã
ãç°¡åã«Tauri 2.0ã説æããã¨ã次ã®å³ã®ãããªä»çµã¿ã«ãªã£ã¦ãã¾ãã
Tauri 2.0ã®å½¹å²ã¨ã¯ï¼
ãTauri 2.0ã¯ã次ã®å³ã®ããã«ã½ããã¦ã§ã¢è¨è¨ã¢ãã«ã§ããMVCã«ä¼¼ã¦ãã¾ãã
ãMVCã¯ãModelãViewãControllerã§æ§æãããè¨è¨ã¢ãã«ã§ããViewãUIãªã©ã®è¦ãç®ãæ±ããModelãä¸èº«ã®å¦çãè¡ããControllerãã¦ã¼ã¶ã¼ããã®æ示ãåãã¦ãViewã¨Modelãç¹ãã¾ãã
ãã¾ãã«Tauri 2.0ã¯ãViewãããã³ãã¨ã³ãã®Webãã¼ã¸ã§ãããHTML5ï¼CSSï¼JavaScriptãã®UIã«å½ãããModelãããã¯ã¨ã³ãã®Rustã«å½ãããControllerãããã³ãã¨ã³ãã¨ããã¯ã¨ã³ããç¹ãããªãã¸ï¼JavaScriptã¨Rustã§æ¸¡ãæ©ï¼ã«å½ããã¾ãã