rust 学习笔记
- 基本类型使用 u32 u64 i32 f32 , str String 等
- 泛型简单实现 Vector HashMap
- 选择 循环结构 if for loop while
- 模块定义及引用 mod pub
- 面向对象 struct 类型 impl 方法定义
- 发布程序到 crates.io
shell
cargo new
cargo login # 需要一个token
cargo publish # 需要 Cargo.toml 中有足够的说明
cargo install # 安装crates.io