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

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!");
}
主站蜘蛛池模板: 政和县| 上高县| 永嘉县| 砚山县| 陇川县| 石首市| 绥滨县| 屯留县| 内江市| 尤溪县| 精河县| 廉江市| 盘山县| 都昌县| 宜兰县| 南溪县| 留坝县| 丁青县| 大宁县| 新龙县| 五家渠市| 五台县| 兰西县| 涡阳县| 海伦市| 互助| 隆林| 子长县| 鹤山市| 龙游县| 濮阳县| 新昌县| 南充市| 锡林浩特市| 枣强县| 碌曲县| 陆川县| 河东区| 凌云县| 长春市| 满城县|