Rust Feed is an open-source collection of Rust articles and tutorials originally posted in the Facebook Rust Dev Community. This repository serves as a centralized, well-organized knowledge base built with mdBook.
You can read the compiled book online here: Rust Feed Documentation
To run this project locally and build the documentation, you will need:
-
Rust and Cargo: Install via rustup (
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh) -
mdBook: Install via cargo:
cargo install mdbook
We have fully automated the indexing process native to the Rust ecosystem. To add a new article to the book:
-
Create your Markdown file: Write your article and save it as a
.mdfile. Ensure it has a# Heading 1at the top as the title. -
Place it in the correct category: Move your
.mdfile into the corresponding category folder insidesrc/. For example:src/case-study/my-new-article.md -
Run the Update Script: From the root of the project, run the update script. This script will automatically update the category index and regenerate the
SUMMARY.mdfile using our custom Rust auto-indexer../update.sh
-
Preview locally (Optional):
mdbook serve --open
rust-feed/
├── book/ # Compiled HTML output (gitignored)
├── scripts/
│ └── auto_index/ # Custom Rust CLI to auto-generate indices and SUMMARY.md
├── src/ # Markdown source files for the book
│ ├── case-study/ # Category folders containing articles
│ ├── deep-dive/
│ ├── ...
│ ├── README.md # Introduction page for mdBook
│ └── SUMMARY.md # Auto-generated book sidebar structure
├── book.toml # mdBook configuration
├── update.sh # Wrapper script to run auto_index and mdbook build
└── README.md # This file
This project is licensed under the MIT License.