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

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!");
}
主站蜘蛛池模板: 日照市| 牙克石市| 林州市| 五家渠市| 临潭县| 永仁县| 彰化市| 榆林市| 泽州县| 黄平县| 开平市| 顺昌县| 宜兰市| 且末县| 宣武区| 邛崃市| 秦皇岛市| 利津县| 大余县| 佛教| 谷城县| 翁牛特旗| 寿光市| 远安县| 容城县| 丰台区| 定陶县| 新绛县| 上饶市| 扬州市| 澄城县| 灵丘县| 白银市| 利津县| 达日县| 教育| 克什克腾旗| 棋牌| 温宿县| 进贤县| 千阳县|