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

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!");
}
主站蜘蛛池模板: 冀州市| 青铜峡市| 涟源市| 武功县| 库尔勒市| 泾阳县| 康平县| 浪卡子县| 白山市| 海丰县| 和顺县| 崇左市| 和顺县| 西峡县| 佛坪县| 崇明县| 咸宁市| 南涧| 巴彦县| 许昌市| 长宁县| 武安市| 乐亭县| 抚顺县| 泾阳县| 瑞丽市| 呼伦贝尔市| 齐河县| 太保市| 宁国市| 吴川市| 焦作市| 宣恩县| 鹤壁市| 莱阳市| 淳安县| 西盟| 青铜峡市| 永泰县| 元朗区| 新竹市|