lyq.me@qq.com 8 months ago
parent
commit
c4e8c096e1
5 changed files with 64 additions and 0 deletions
  1. 1 0
      docs/.gitignore
  2. 6 0
      docs/book.toml
  3. 3 0
      docs/src/SUMMARY.md
  4. 53 0
      docs/src/chapter_1.md
  5. 1 0
      rusty-book

+ 1 - 0
docs/.gitignore

@@ -0,0 +1 @@
+book

+ 6 - 0
docs/book.toml

@@ -0,0 +1,6 @@
+[book]
+authors = ["lyq.me@qq.com"]
+language = "en"
+multilingual = false
+src = "src"
+title = "rust-note"

+ 3 - 0
docs/src/SUMMARY.md

@@ -0,0 +1,3 @@
+# Summary
+
+- [Chapter 1](./chapter_1.md)

+ 53 - 0
docs/src/chapter_1.md

@@ -0,0 +1,53 @@
+# Chapter 1
+# Rust 介绍
+
+高性能,内存安全语言,微软大力发展的语言,可用于服务器,web应用,嵌入式开发。
+
+## 
+
+官网:
+
+Rust 官方网站:https://www.rust-lang.org/zh-CN
+Rust 官方文档:https://doc.rust-lang.org/
+Rust Play:https://play.rust-lang.org/
+
+
+## 开发环境搭建
+
+vscode(rust-analyzer + C/C++)  这里使用 coding 模板 rust 项目环境。
+
+
+## 数据类型
+
+Integer
+Floating
+bool
+char  4个字节(unicode)
+数组
+
+## 函数
+
+
+fn main(){
+
+}
+
+## struct 结构体(类)
+
+
+## 多线程
+
+
+## 包
+
+## 错误处理
+
+
+## 引用切片,泛型
+
+## 文件操作
+
+网络
+
+数据库
+

+ 1 - 0
rusty-book

@@ -0,0 +1 @@
+Subproject commit da1ad12c7127e46769a5c4ecb3c887cbcd9c620d