Giter Club home page Giter Club logo

intro-to-rust's Introduction

Rust 语言入门 Introduction to Rust

本文档使用大量的图片和代码片段, 尝试帮助阅读者建立 Rust 的知识体系, 理清难点.

在线浏览

本文档包括以下几个部分的内容:

  • 第一部分: 语言基础
  • 第二部分: 自定义类型
  • 第三部分: 标准库
  • 第四部分: 内存管理
  • 第五部分: 并发编程
  • 第六部分: 异步编程
  • 第七部分: 工程实践
  • 第八部分: Rust语言的生态

反馈问题

本文档到目前为止还没有完成, 中间有不少章节是缺失的, 如果发现错误, 欢迎 反馈问题, 或者提交 PR.

搭建本地环境

想在本地搭建本文档的环境也是很容易的, 这些文档记录以 markdown 文件为主, 并使用 mdbook 生成网页.

  1. 用 cargo 来安装它: cargo install mdbook mdbook-linkcheck
  2. 运行 mdbook build 命令, 会在book/目录里生成完整的电子书的网页版本
  3. 使用 mdbook serve 命令监控文件变更, 并启动一个本地的 web 服务器, 在浏览器中打开 http://localhost:3000

生成 PDF

如果想生成 pdf, 需要安装 mdbook-pandoc:

  • 运行 ./tools/install-pdf-deps.sh 脚本安装相应的依赖包
  • 运行 ./tools/generate-pdf.sh 脚本, 就会生成 book-pandoc/pdf/IntroductionToRust.pdf

版权

文档部分采用 知识共享署名 4.0 国际许可协议 发布.

文档及项目中的源代码依照 GPL 3.0 协议 发布.

intro-to-rust's People

Contributors

xushaohua avatar

Stargazers

PeiYu Cui avatar

Watchers

Lucian avatar  avatar  avatar

Forkers

rs-god

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.