Introduction
Manage and test Rust projects
()
What you should know
()
1. Managing Projects
The module system
()
Packages vs. crates
()
Defining modules
()
Absolute vs. relative path
()
Public modules
()
Public structs and enums
()
Bringing paths into scope
()
Using external crates
()
Separating modules into multiple files
()
Challenge: Organize a project
()
Solution: Organize a project
()
2. Automating Tests
Test functions
()
assert! macro
()
Custom failure messages
()
assert_eq! and assert_ne! macros
()
should_panic! macro
()
Controlling test execution
()
Unit tests
()
Integration tests
()
Challenge: Write automated tests
()
Solution: Write automated tests
()
Ex_Files_Advanced_Rust_Managing_Projects.zip
(193 KB)