ϐłusρvftHg\\Rust̕ϐAf[^^𗝉F{炵wRusti2ji1/3 y[Wj - IT

ϐłusρvftHg\\Rust̕ϐAf[^^𗝉F{炵wRusti2ji1/3 y[Wj

Rustɂ‚Ċ{炵wł{AځB2́ARustɂϐAf[^^Azɂ‚āB

» 2021N0916 0500 J
[Rij^RcˊiďCjCWINGSvWFNg]

̋L͉łBo^ijƑSĂ܂B

ub炵wRustṽCfbNX

AځFb炵wRust

@Rustɂ‚Ċ{炵wł{AځBAڑ2́AC/C++̌o҂ӎȂA{Iȕ@iϐAf[^^AzȂǁjɂ‚āARustł͂ǂƂϓ_ŏЉ܂B

TvpbP[Wɂ‚

@{Aڂł̓TvR[hЉāAKvɉăRpCƎs܂ōsĂ܂BTvR[hGitHubŌJĂA玩RɃ_E[hĎg悤ɂ܂B֐lăTvR[h̓pbP[W̌`ł܂Ƃ߂Ă܂BKvȐĺApbP[W܂Ƃ߂zipt@C_E[hāA茳PC̓KȃtH_iŐLŏЉatmarkit_rustȂǁjɓWJ΁AɃTvR[hQƁ^sł܂i̓Iȕ@Aڑ1̋LQƂĂjB

@ڂ̓vWFNgǗ̉Ŏグ܂ApbP[Wɂ́uN[gvƌĂ΂oCi邢̓Cu܂ނƂł悤ɂȂĂ܂B̂AoCĩN[g͕܂߂邱Ƃł̂ŁApbP[W̊eTv͂ꂼقȂN[gƂĂ܂B

@1ŏЉtH_\Ƃ͎኱قȂ܂̂ŁAӂĂBpbP[Wɕ̃N[g܂߂ꍇA\[Xt@C̒uꏊsrc/binɂȂAsrc/main.rs͎gȂȂ܂BႦ΁Asample1sample2Ƃ2‚̃N[gpӂꍇAsrc/bin/sample1.rssrc/bin/sample2.rsƂ悤Ƀ\[Xt@Czu܂B

@āAsƂɂ́Aȉ̂悤ɃN[g--binIvVŖ܂Bw肵ȂꍇAuftHg̃N[gw肳ĂȂvƂG[ɂȂ܂B

% cargo run --bin sample1

@oCitarget/debugɒû͕ς܂BꏊɁAsample1Asample2u܂iWindows̏ꍇsample1.exe, sample2.exejB܂Ƃ߂ƁAȉ̂悤ȍ\ɂȂ܂B

package_name\{\src\bin\{\sample1.rs
             b         {\sample2.rs
             {\target\debug\{\sample1(.exe)
@                           {\sample2(.exe)

@\[Xt@C{EҏWAoCi𒼐ڎsƂ̎QlɂĂB

Rg

@RustɂRg2ނ܂BЂƂ‚CłȂ݂́u/*`*/v̌`AЂƂ‚C++/JavaȂǂŎg2AXbVi//j`łB

@O҂́A/**/͈̔͂RgɂȂ܂Bsɂ܂ĂĂAs̓rn߂čs̓rŏIĂ\܂B֐̑OŎdlA\[XR[h̐擪ō҂tAo[WL肷̂ɗp܂B

/*
ҁFWINGSvWFNg
tF2021/9/1
o[WF1.00
*/

@҂́A//n܂āAs܂ŃRgɂȂ܂Bs̓rn߂Ă\܂Bɑ΂Ȃǂɗp܂B

// ̊Jn
println!("Hello, world!");  // "Hello, world!"ƕ\

@Rgɂ́Â悤ȃIȗprƁAhLe[VRgƂHTMLhLg̗̐pr܂BhLe[VRg͖{Aڂł͎グ܂B

ϐ

@Ă͕ϐ܂Bϐ͐\ƂƂɁAvO~OɌȂvfłB

ϐ̐錾

@Rust͐ÓIɌ^tvO~OȂ̂ŁAϐOɐ錾Kv܂Bϐ́Aȉ̂悤ɁuletvŐ錾܂Bϐ̐錾́A֐̓AOAubN̓ȂǁA{Iɂǂłł悤ɂȂĂ܂B

let x = 100;

@ŁAϐx錾AlƂ100ƂӖɂȂ܂BȂARustł́ul100xɍSvƕ\܂B

@ϐ̃f[^^̂܂񂪁A肠܂BRustɂ́u^_vƂdg݂A^ȗꂽꍇɐ悤ɂȂĂ܂B̗ł́Al100𐮐ƌȂāAx͐^łƐĂ܂i^ɂނ܂Bڂ͌q܂jB

@@@@@@ 1|2|3 ̃y[W

Copyright © ITmedia, Inc. All Rights Reserved.

X|T[̂m点PR

ڂ̃e[}

Microsoft  WindowsőO2025
AI for GWjAO
[R[h^m[R[h Zg by IT - ITGWjArWlX̒SŊ􂷂gD
Cloud Native Central by IT - XP[uȔ\͂gD
VXeJmEnE yirzPR
Ȃɂ߂̋LPR

RSSɂ‚

ACeBfBAIDɂ‚

[}KWo^

IT̃[}KẂA AׂĖłBЃ[}KWwǂB