錆言語

       錆言語がある言語のプログラミングシステムの安全性に焦点を当て、。メモリの安全性を確保するために設計された錆言語システムは、セキュリティコード、ドレープポインタとデータ競争の中でヌルポインタを許可していません。2015年には、初版を出版しました

 

https://kaisery.github.io/trpl-zh-cn/

 

インストール

参考:https://blog.csdn.net/weixin_43882409/article/details/87616268?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu- 1

https://blog.csdn.net/weixin_40411915/article/details/100109793

 

インストールは完了です

 

最初のプログラム

// This is the main function
fn main() {
   // The statements here will be executed when the compiled binary is called
   // Print text to the console
    println!("Hello World!");
}

rustc後exeファイルのプログラムをコンパイル

 

錆を作成するために、貨物のプロジェクトを使用します

cargo new + 文件名

 コンパイルして実行

cargo run

コンパイル

cargo build

公開された441元の記事 ウォンの賞賛188 ビュー190 000 +

おすすめ

転載: blog.csdn.net/hxxjxw/article/details/105317065