├── img └── learn_rust_now.png ├── .gitignore ├── LICENSE └── README.md /img/learn_rust_now.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EthanYuan/Rust-Study-Resource/HEAD/img/learn_rust_now.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | 5 | # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries 6 | # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html 7 | Cargo.lock 8 | 9 | # These are backup files generated by rustfmt 10 | **/*.rs.bk 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rust学习资源 2 | 3 | ![](img/learn_rust_now.png) 4 | 5 | ## 视频资源 6 | 7 | - [2020首届中国Rust开发者大会](https://2020conf.rustcc.cn/schedule.html),[Day 1](https://live.csdn.net/room/u012067469/3VT3jORs), [Day 2](https://live.csdn.net/room/u012067469/51UUkkjG) 8 | - [2021Rust Meetup深圳站](https://www.oschina.net/event/2321485),[上半场](https://www.bilibili.com/video/BV1Q54y187RH),[下半场](https://www.bilibili.com/video/BV1DK4y1T75e/?spm_id_from=333.788.recommend_more_video.-1) :sunrise_over_mountains: 9 | - [2021Rust Meetup 北京站](https://www.huodongxing.com/event/5590522571600), [回放](https://www.bilibili.com/s/video/BV1R54y1b7qo) :sunrise_over_mountains: 10 | - [2021Rust Meetup 成都站](https://cd.huodongxing.com/event/6591778171700) ,[回放](https://www.bilibili.com/video/av845341984/) :sunrise_over_mountains: 11 | - [张汉东的Rust实战课:带你完整构建一个异步Web框架](https://time.geekbang.org/course/intro/100060601),极客时间 12 | - [Rust唠嗑室](https://space.bilibili.com/25566598?spm_id_from=333.788.b_765f7570696e666f.2),B站,MikeTang84 13 | - [ChaosBot](https://space.bilibili.com/24917186?spm_id_from=333.788.b_765f7570696e666f.2),B站,张汉东 :sunrise_over_mountains: 14 | - [程序员令狐壹冲](https://space.bilibili.com/485433391?spm_id_from=333.788.b_765f7570696e666f.2),B站,分享Rust和区块链技术 15 | - [Rust编程语言入门](https://www.bilibili.com/video/BV1hp4y1k7SV),B站,杨旭(微软MVP) 16 | 17 | ## 社区 18 | 19 | - [Rust语言中文社区](https://rustcc.cn/) 20 | - Rust语言中文社区微信公众号:rust-china 21 | - [Rust Magazine 中文月刊](https://rustmagazine.github.io/rust_magazine_2021/) :sunrise_over_mountains: 22 | - [Rust Discord](https://discord.com/channels/442252698964721669/616119515113062421) 23 | - [The official users forum](https://users.rust-lang.org/) 24 | - [This Week in Rust](https://this-week-in-rust.org/) 25 | 26 | ## 出版书籍 27 | 28 | - 《[The Rust Programming Language](https://doc.rust-lang.org/stable/book/%23the-rust-programming-language)》,Steve Klabnik and Carol Nichols,[中文版](https://kaisery.github.io/trpl-zh-cn/) 29 | * 《Programming Rust》,Jim Blandy and Jason Orendorff,2018,[豆瓣门](https://book.douban.com/subject/35217097/) 30 | * 《深入浅出Rust》,范长春 ( [@F001](https://www.zhihu.com/people/bf95908efb41f3447704e267c6be7139) ),2018,[豆瓣门](https://book.douban.com/subject/30312231/) 31 | * 《Rust编程之道》, [@张汉东](https://www.zhihu.com/people/5be040c7edb6ee5ba769cf5f737b1ba9) ,2019,[豆瓣门](https://book.douban.com/subject/30418895/) 32 | * 《[Begin Rust](https://www.beginrust.com/sample/beginrust.html)》,Michael and Miriam Snoyman,2020, 33 | * 《精通Rust》,Rahul Sharm,2021,[豆瓣门](https://book.douban.com/subject/35290878/) 34 | * 《[Zero To Production In Rust](https://www.zero2prod.com/)》,Luca Palmieri,2021 35 | * 《Rust语言编程实战》,Claus Matzinger,2021,[豆瓣门](https://book.douban.com/subject/35317257/) :sunrise_over_mountains: 36 | 37 | ## 语言学习 38 | 39 | **语言** 40 | 41 | - [Rust官网](https://www.rust-lang.org/zh-CN/) 42 | - [The Rust Programming Language](https://doc.rust-lang.org/book/) - “the book”,[中文版](https://kaisery.github.io/trpl-zh-cn/) 43 | - [The Rust Standard Library](https://doc.rust-lang.org/std/index.html) 44 | - [Learning Rust](https://learning-rust.github.io/) 45 | - [The Rustonomicon](https://doc.rust-lang.org/nomicon/),[死灵书](http://120.78.128.153/rustonomicon/) 46 | - [The Rust Reference](https://doc.rust-lang.org/stable/reference/),[中文版](https://minstrel1977.gitee.io/rust-reference/) 47 | - [The Rust RFC Book](https://rust-lang.github.io/rfcs/) 48 | - [The Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/),[中文版](https://erasin.wang/books/edition-guide-cn/introduction.html) 49 | - [The Rust Unstable Book](https://doc.rust-lang.org/beta/unstable-book/) 50 | - [Rust API Guidelines](https://rust-lang.github.io/api-guidelines/about.html) 51 | - [The Rust Performance Book](https://nnethercote.github.io/perf-book/) 52 | - [The Little Book of Rust Books](https://lborb.github.io/book/),Rust书籍宝库 53 | 54 | **主题:rustc** 55 | 56 | - [Guide to Rustc Development](https://rustc-dev-guide.rust-lang.org/) 57 | - [Rust Forge](https://forge.rust-lang.org/) 58 | 59 | **主题:Cargo** 60 | 61 | - [The Cargo Book](https://doc.rust-lang.org/cargo/),[中文版](http://llever.com/cargo-book-zh/) 62 | 63 | **主题:命令行应用** 64 | 65 | - [Command Line Applications in Rust](https://rust-cli.github.io/book/index.html) 66 | 67 | **主题:宏** 68 | 69 | - [The Little Book of Rust Macros](https://danielkeep.github.io/tlborm/book/index.html),[Rust宏小册](https://www.bookstack.cn/read/DaseinPhaos-tlborm-chinese/aeg-README.md) 70 | 71 | **主题:设计模式** 72 | 73 | - [Rust Design Patterns](https://rust-unofficial.github.io/patterns/) 74 | 75 | **主题:错误处理** 76 | 77 | - [Error Handling in Rust](https://blog.burntsushi.net/rust-error-handling),[Rust中的错误处理](https://www.oschina.net/translate/rust-error-handling) 78 | 79 | **主题:异步** 80 | 81 | - [Asynchronous Programming in Rust](https://rust-lang.github.io/async-book/),[Rust 异步编程](https://huangjj27.github.io/async-book/index.html) 82 | - [Async/Await](https://os.phil-opp.com/async-await/),[中文](https://zhuanlan.zhihu.com/p/344809217) 83 | - [Tokio Tutorial](https://tokio.rs/tokio/tutorial),[中文](https://github.com/dslchd/tokio-cn-doc) 84 | - [Async programming in Rust with async-std](https://book.async.rs/),[async-std 中文文档](https://learnku.com/docs/rust-async-std/) 85 | - [Actix Tutorial](https://actix.rs/docs/), [中文](https://github.com/dslchd/actix-web3-CN-doc) 86 | - [The Node Experiment - Exploring Async Basics with Rust](https://cfsamson.github.io/book-exploring-async-basics/) 87 | - [Futures Explained in 200 Lines of Rust](https://cfsamson.github.io/books-futures-explained/introduction.html),[200行代码讲透RUST FUTURES](https://stevenbai.top/rust/futures_explained_in_200_lines_of_rust/) 88 | - [A primer to Rust Async](https://omarabid.com/async-rust),[Rust 异步入门](https://rustcc.cn/article?id=0117ce5f-2c89-49bf-8b06-82bf66acf936) 89 | - [The Future With Futures](https://asquera.de/blog/2017-03-01/the-future-with-futures/) 90 | - [Rust's Journey to Async/await](https://www.infoq.com/presentations/rust-2019/) 91 | - [Asynchronous Programming in Rust](https://www.section.io/engineering-education/asynchronous-programming-in-rust/)([Zack Jorquera](https://www.section.io/engineering-education/authors/zack-jorquera/)) 92 | - [rust异步编程](https://www.rectcircle.cn/posts/rust%E5%BC%82%E6%AD%A5%E7%BC%96%E7%A8%8B/) 93 | - [Rust之异步入门](https://juejin.cn/post/6875948465055072263) 94 | - [Epoll, Kqueue and IOCP Explained with Rust](https://cfsamsonbooks.gitbook.io/epoll-kqueue-iocp-explained/) 95 | - [Green Threads Explained in 200 Lines of Rust](https://cfsamson.gitbook.io/green-threads-explained-in-200-lines-of-rust/) 96 | 97 | **主题:WebAssembly** 98 | 99 | - [Rust and WebAssembly](https://rustwasm.github.io/docs/book/),[Rust和WebAssembly](http://tutzip.com/tut/rustwasm/) 100 | 101 | **主题:文档** 102 | 103 | - [The rustdoc book](https://doc.rust-lang.org/stable/rustdoc/) 104 | 105 | **主题:FFI** 106 | 107 | - [The `bindgen` User Guide](https://rust-lang.github.io/rust-bindgen/) 108 | 109 | **练习** 110 | 111 | - [Rust by Example](https://doc.rust-lang.org/rust-by-example/#rust-by-example),[通过例子学 Rust](https://rustwiki.org/zh-CN/rust-by-example/) 112 | - [Rustlings](https://github.com/rust-lang/rustlings): Small exercises to get you used to reading and writing Rust code! 113 | - [Rust Quiz](https://dtolnay.github.io/rust-quiz/1) 114 | - [Rust Language Cheat Sheet](https://cheats.rs/) 115 | - [Learn Rust With Entirely Too Many Linked Lists](https://rust-unofficial.github.io/too-many-lists/) 116 | 117 | ## 板条箱 118 | 119 | **食谱** 120 | 121 | - [Crates.io](https://crates.io/) 122 | - [Lib.rs](https://lib.rs/),Lib.rs is a catalog of programs and libraries written in Rust. 123 | - [Rust Cookbook](https://rust-lang-nursery.github.io/rust-cookbook/),[中文版](https://rust-cookbook.budshome.com/),[Rust烹饪书](http://llever.com/rust-cookbook-zh/) 124 | - [Rust实践指南](https://rust-guide.budshome.com/) 125 | 126 | **常用箱** 127 | 128 | - [Tokio](https://github.com/tokio-rs/tokio),10.9k stars,async programming engine 129 | - [Actix](https://actix.rs/docs/),10.3k stars,Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust 130 | - [clap](https://github.com/clap-rs/clap),5.1k stars,Command Line Argument Parser for Rust 131 | - [Serde](https://github.com/serde-rs/serde),3.7k stars,Serialization/Deserialization library 132 | - [Crossbeam](https://github.com/crossbeam-rs/crossbeam),3.4k stars,This crate provides a set of tools for concurrent programming 133 | - [StructOpt](https://github.com/TeXitoi/structopt),1.8k stars,Parse command line arguments by defining a struct 134 | - [Regex](https://github.com/rust-lang/regex),1.7k stars,regular expressions 135 | - [thiserror](https://github.com/dtolnay/thiserror),1.2k stars, This library provides a convenient derive macro for the standard library's [`std::error::Error`](https://doc.rust-lang.org/std/error/trait.Error.html) trait 136 | - [winapi-rs](https://github.com/retep998/winapi-rs),1.1k stars,bindings for windows APIs --------------------------------------------------------------------------------