官术网_书友最值得收藏!

Rust

C and C++ were intended to be the primary languages used for WebAssembly, but Rust is a perfectly suitable substitute. Rust is a systems programming language that is syntactically similar to C++. It was designed with memory safety in mind, but still retains the performance advantages of C and C++. The current nightly build of Rust's compiler can generate .wasm files from Rust source code, so if you prefer Rust and are familiar with C++, you should be able to use Rust for most of the examples in this book.

The following snippet demonstrates how to print Hello World! to the console using Rust:

fn main() {
println!("Hello World!");
}
主站蜘蛛池模板: 武安市| 桐乡市| 余姚市| 隆安县| 金寨县| 丽水市| 孟州市| 宁波市| 平顺县| 清徐县| 阿荣旗| 密山市| 科尔| 三原县| 防城港市| 揭西县| 大埔区| 嵊州市| 务川| 郯城县| 太仆寺旗| 综艺| 磐安县| 社旗县| 隆昌县| 望都县| 政和县| 南充市| 乐都县| 丹江口市| 浪卡子县| 额尔古纳市| 班戈县| 张掖市| 公安县| 大余县| 晋中市| 临洮县| 封开县| 襄垣县| 静安区|