This repository hosts the in-progress Zig: Zero to Hero guide focused on modern Zig idioms and best practices for Zig 0.15.2.
This is a comprehensive guide to Zig development teaching current best practices. All code examples and runnable programs target Zig 0.15.2. For users on Zig 0.14.1, migration guidance is provided in Appendix A & B. See versioning.md for version support policy.
The guide includes 14 chapters covering Quick Start through Logging/Diagnostics, plus 3 appendices (0.14.1 Quick Reference, Migration Guide, Reference Material).
# Build all examples
zig build
# Build the book
bash scripts/prepare-mdbook.sh
mdbook build
# Serve locally
mdbook serveSee CONTRIBUTING.md for detailed development instructions.
📖 See todo.md for detailed task tracking and progress.
✅ Beta Release Ready! 🎉
All critical priority items complete:
- ✅ 15 chapters (Quick Start through Appendices) - ~22,000+ lines
- ✅ Introduction with Quick Start guide
- ✅ 100 Zig example files (4,430+ lines of code)
- ✅ 97+ examples, 100% compilation success on Zig 0.15.2
- ✅ Complete CI/CD pipeline (validation + GitHub Pages)
- ✅ Comprehensive proofreading (433 footnotes, 74 cross-refs validated)
- ✅ mdBook integration with automated deployment
See todo.md for the full roadmap. High priority items:
- Additional hands-on projects
- Technical review from Zig community
- Visual diagrams for key concepts
- Exercise sections with solutions
- Final copyediting pass
This is the only comprehensive production-focused Zig resource for experienced developers:
- Zero to Hero Coverage: From Quick Start guide through advanced topics
- Real-World Focus: Examples from major Zig projects (Bun, TigerBeetle, Ghostty, Mach, ZLS)
- Production Ready: 100% validated code examples on Zig 0.15.2, comprehensive CI/CD
- Modern & Focused: Teaches current best practices (Zig 0.15.2) with migration support
- Complete: 14 chapters + 3 appendices, 22,000+ lines of content, 100 Zig example files
- Professional: Testing, benchmarking, CI/CD, project layout, interoperability
- todo.md - Project roadmap and task tracking
- CONTRIBUTING.md - How to contribute (for humans)
- AGENTS.md - AI agent instructions (for AI)
- versioning.md - Version support policy
- style_guide.md - Writing standards
- references.md - Authoritative sources