multirust ã§ä»æ¥ããå§ããå¿«é© rust çæ´»
Rust 1.0 ãªãªã¼ã¹ããã§ã¨ããããã¾ãï¼ï¼ï¼ï¼
Rust 1.0 ããªãªã¼ã¹ããã¾ããï¼ï¼ï¼ï¼ãã§ããï¼ï¼ï¼ï¼ï¼ï¼
ãã®ãªãªã¼ã¹ã¯é常ã«å¤§ããªä¸æ©ã§ããããã¾ã§ã¯ã³ã³ãã¤ã©ã®ãã¼ã¸ã§ã³ãä¸ãã度ã«ã³ã¼ããé å¼µã£ã¦ä¿®æ£ããå¿
è¦ãããã¾ããããä»å¾ã¯stable
㪠rustc
ã使ã£ã¦ä½ã£ãã³ã¼ãã«ã¤ãã¦ã¯ãå°æ¥ã«ããã£ã¦ãã³ã³ãã¤ã«å¯è½ã§åä½ãããã¨ãä¿è¨¼ããã¾ãã
(æ©è½ã® deprecation ãªã©ã¯ããã¾ãã®ã§ã絶対çãªãã®ã§ã¯ããã¾ããããç ´å£çå¤æ´ã®é »åº¦ã»åº¦åãã¯ããã¾ã§ãããã ãã¶æ§ããã«ãªãã¯ãã§ããã¼ã¸ã§ã³ã¢ããã¸ã®è¿½å¾ã諦ãã¦ãã¾ããã¨ããããã "Rust ç²ã" ç¾è±¡ã¯æ¸ããã¨ãæå¾
ã§ãã¾ã)
ç¾æç¹ã§ã® Rust ãåãå·»ãç°å¢ã®åé¡
è¨èªã®å®å®åã«ããããµã¼ããã¼ãã£ã¼ã®ã©ã¤ãã©ãªã¯ä»å¾ã©ãã©ãå å®ãã¦ããã¨äºæ³ããã¾ããRust ã®å°æ¥ã¯ãã©è²ã«ãªãã«éããªãã¨çè ã¯ä¿¡ãã¦ãã¾ããã1.0ããªãªã¼ã¹ãããã°ããã®ç¾æç¹ã§ã¯ã¾ã ã¾ã çæ³ã®ç¶æ ã«ã¯å°éãã¦ããªãã®ãç¾å®ã§ããä¾ãã°ãæ¬æ¥å®æ½ããã Rust 1.0 Releaseè¨å¿µç¥è³LTä¼ ã§ã¯ãå¤ãã®æ¹ã以ä¸ã«ã¤ãã¦å°ã£ã¦ããã¨è¨´ãã¦ãã¾ããã
- 使ãããã©ã¤ãã©ãªã unstable ãªæ©è½ã使ã£ã¦ãããããstable ãªã³ã³ãã¤ã©ã§ã¯ã³ã³ãã¤ã«ã§ããªã
- 使ãããã©ã¤ãã©ãªããã°ããæ´æ°ããã¦ããããææ°ã®
rustc
+cargo
ã§ã¯ã³ã³ãã¤ã«ã§ããªã
ããããåé¿ããããã«ã¯ãnightly/beta ãã¼ã¸ã§ã³ã®ã³ã³ãã¤ã©ã¨ stable ãã¼ã¸ã§ã³ã®ã³ã³ãã¤ã©ããããã¸ã§ã¯ããã¨ã«åãæ¿ãã¦å©ç¨ããå¿ è¦ãããã¾ãããããããããç¹å®ã®æ¥ä»ã® nightly build ãå©ç¨ããå¿ è¦ãåºã¦ãã¦ãã¾ãããããã¾ãããé常ã«ããã©ãããä½æ¥ã§ããã
ä»ããã« Rust ãæ´»ç¨ãããããããªããªãã®ããã®ãã¼ã«ã multirust
ã§ãã
multirust
ã®ã¹ã¹ã¡
multirust
ã¯ãä¸è¨ã§è¨ã£ã¦ãã¾ãã° ruby
ã® rvm
ãpython
ã® pyenv
ã®ãããªãã®ã§ãè¤æ°ãã¼ã¸ã§ã³ (ãªãªã¼ã¹ãã£ã³ãã«) ã® Rust ãã¼ã«ãã§ã¤ã³ (rustc
& cargo
) ãç°¡åã«åãæ¿ãã¦ä½¿ããããã«ãããã®ã§ãã
Rust ã®éçºç°å¢ãæ´ããæ¹æ³ã¨ãã¦ã¯ãå
¬å¼ãµã¤ãã«è¨è¼ããã¦ãã rustup.sh
ãå©ç¨ããæ¹æ³ ãæåã§ãããmultirust
ã使ãæ¹æ³ããªã¹ã¹ã¡ãã¾ãã
(Rust ã®ã³ã¢ãã¼ã ã®ä¸å¡ã® Steve Klabnik ããã éWindowsç°å¢ã®ã¦ã¼ã¶ã¼ã«ã¤ãã¦ã¯ multirust
ã®å©ç¨ãæ¨å¥¨ãã¦ãã¾ã)
multirust
ã®ã¤ã³ã¹ãã¼ã«
以ä¸ã³ãã³ããã³ããããã ã㧠multirust
ã®ã¤ã³ã¹ãã¼ã«ã¯å¯è½ã§ã (2015/5/16 ç¾å¨ãå®éã«ã¤ã³ã¹ãã¼ã«ããé㯠README ãèªãã§ææ°ã®æé ã確èªãã¦ãã ãã)ã
curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh
ä¸è¨ãå®è¡ããã¨ãmultirust
ã³ãã³ã㨠nightlyçã® rustc
㨠cargo
ãã¤ã³ã¹ãã¼ã«ããã¾ã (æ¢ã« rustc
ãªã©ãã¤ã³ã¹ãã¼ã«ããã¦ããã¨ãè¡çªããããï¼)ã
multirust
ã®ä½¿ãæ¹
multirust
ã®ã¤ã³ã¹ãã¼ã«ç´å¾ã®ç¶æ
ã§ã¯ã rustc
/cargo
ã³ãã³ããå®è¡ããã¨ãnightly çã®åã³ãã³ããå®è¡ããã¾ãã
ããããã¸ã§ã¯ãã«ã¤ãã¦ãstable
çã® rustc
/cargo
ãå©ç¨ãããå ´åã以ä¸ãå®è¡ãã¾ãã
cd <path to project> multirust override stable
ãããããã¨ã§ãå½è©²ãã£ã¬ã¯ããªã®ãã¹ã¨ã³ã³ãã¤ã©ãã¼ã¸ã§ã³ã®å¯¾å¿é¢ä¿ãè¨é²ãããå½è©²ãã£ã¬ã¯ããªã§å®è¡ãã rustc
/cargo
ã«ã¤ãã¦ã¯ã stable
çãå©ç¨ãããããã«ãªãã¾ã (beta
çã使ãããå ´åã¯ã multirust override beta
ã¨ãã)ã
ã¾ããç¹å®ã®æ¥ä»ã® nightly
çãå©ç¨ãããã¨ãã§ãã¾ãã
cd <path to project> multirust oberride nightly-2015-05-16
nightly
çã®ãã¼ã«ãã§ã¤ã³ã«ã¤ãã¦ã¯æ¥ã
ã®æ´æ°ã«è¿½å¾ããå¿
è¦ãããããããã¾ãããããã©ã«ãã§ã¯ multirust
ãã¤ã³ã¹ãã¼ã«ããæç¹ã§ææ°ã® nightly ãå©ç¨ããã¾ãããææ°ã® nightly ãå©ç¨ããããã«ããããã«ã¯ã以ä¸ãå®è¡ãã¦ä¿åããã¦ãããã¼ã«ãã§ã¤ã³ãæ´æ°ãã¾ãã
multirust update nightly
æ¯æ¥ã® nightly æ´æ°ä½æ¥ã便å©ã«ãªãã¾ããï¼
ãªãããã£ã³ãã«åãæå®ãã multirust update
ããå ´åãnightly, beta, release ã®3ãã£ã³ãã«å
¨ã¦ã®ã³ã³ãã¤ã©ãæ´æ°ãããããã§ãã
ã¾ã¨ã
multirust
便å©ï¼ï¼ï¼
詳ãã話㯠multirust
ã® README ã«ããã¾ã¨ã¾ã£ã¦ããã®ã§èªã¿ã¾ãããã