rust-unofficial / patterns
- вторник, 5 января 2021 г. в 00:25:23
Shell
A catalogue of Rust design patterns, anti-patterns and idioms
An open source book about design patterns and idioms in the Rust programming language that you can read here.
libstd
, and how it integrated into the Rusts source code, lessons can be learned about ergonomic project management and API design. Closely assosciated with platform-specific sub-modules)Error
traits and Result
forwardingunwrap()
ing every Result
instead of forwarding itYou are missing content in this repository that can be helpful for others and you are eager to explain it? Awesome! We are always happy about new contributions (e.g. elaboration or corrections on certain topics) to this project.
We suggest reading our Contribution guide to get more information on how it works.
This book is built with mdbook. You can install it by running cargo install mdbook
.
If you want to build it locally you can run one of these two commands in the root directory of the repository:
mdbook build
Builds static html pages as output and place them in the /book
directory by default.
mdbook serve
Serves the book at http://localhost:3000
(port is changeable, take a look at the terminal output
to be sure) and reloads the browser when a change occurs.
This content of this repository is licensed under MPL-2.0; see LICENSE.