Summary
In this chapter, we got acquainted with writing unit tests, integration tests, documentation tests, and benchmarks using both rustc
and the cargo
tool. We then implemented a logic gate simulator crate and got to experience the whole crate development workflow. Later, we learned how to integrate Travis CI for our GitHub project.
In the next chapter, we'll explore Rust's type system and how to use it to express proper semantics in our program at compile time.