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

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!");
}
主站蜘蛛池模板: 防城港市| 山阳县| 千阳县| 莱州市| 民勤县| 舒城县| 罗田县| 湘潭市| 修水县| 嘉禾县| 和硕县| 乌恰县| 皮山县| 彭水| 北流市| 泌阳县| 东宁县| 温宿县| 商丘市| 额济纳旗| 日喀则市| 丽水市| 澜沧| 延川县| 合作市| 泌阳县| 高台县| 无为县| 长武县| 石门县| 沁水县| 渑池县| 体育| 东方市| 额敏县| 长泰县| 马山县| 涞源县| 辉县市| 应城市| 邵阳市|