CodingYang

vuePress-theme-reco Rackar    2018 - 2024
CodingYang CodingYang

Choose mode

  • dark
  • auto
  • light
首页
类别
  • 技术
  • 个人
  • 思考
  • 儿童
标签
时间线
联系
  • 关于
  • RSS订阅 (opens new window)
  • GitHub (opens new window)
  • 简书 (opens new window)
  • CSDN (opens new window)
  • WeChat (opens new window)
GitHub (opens new window)
author-avatar

Rackar

67

文章

44

标签

首页
类别
  • 技术
  • 个人
  • 思考
  • 儿童
标签
时间线
联系
  • 关于
  • RSS订阅 (opens new window)
  • GitHub (opens new window)
  • 简书 (opens new window)
  • CSDN (opens new window)
  • WeChat (opens new window)
GitHub (opens new window)
  • Rust 与 WASM 入坑

    • 参考教程

    Rust 与 WASM 入坑

    vuePress-theme-reco Rackar    2018 - 2024

    Rust 与 WASM 入坑


    Rackar 2021-09-18 Rust WebAssembly

    中秋节不加班,这么有空,赶紧再掉坑学点东西吧。拿Rust 和 WebAssembly来上手。

    # 参考教程

    掘金 (opens new window)

    cargo build
    cargo run
    cargo doc --open
    println!
    i32
    f64
    
    1
    2
    3
    4
    5
    6

    更换一个更牛的教程 Rust语言圣经 (opens new window)

    记录下学习过程

    rustup update # 升级rustup版本
    cargo build --release # 提高优化执行性能
    
    1
    2

    可变变量申明

    let mut x = 5;
    x=6;
    // 或者
    let x =5;
    let x =6;
    
    let _y=5 //申明了不想用,加下划线去警告
    
    
    1
    2
    3
    4
    5
    6
    7
    8
    参与编辑此文章 (opens new window)
    更新于: 5/3/2022, 11:22:59 PM