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

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!");
}
主站蜘蛛池模板: 阿瓦提县| 潮安县| 信宜市| 南和县| 元谋县| 柘荣县| 出国| 九龙坡区| 镇江市| 沙田区| 平远县| 隆化县| 汕尾市| 开江县| 康保县| 桐柏县| 镇雄县| 黄浦区| 广南县| 吉隆县| 潞城市| 泰来县| 云安县| 沅陵县| 延长县| 渝北区| 湾仔区| 甘谷县| 盈江县| 边坝县| 汕尾市| 余江县| 息烽县| 高陵县| 高雄市| 碌曲县| 苗栗市| 博野县| 望江县| 梅州市| 洮南市|