chapter three
This chapter covers:
- Performing normally forbidden operations with
unsafeRust
- Refactoring a component of a C program into Rust
The last chapter provided a high-level overview of Rust code, and discussed some elements of Rust that may be surprising or difficult to understand for new developers. Now that we’re able to write simple Rust programs, this chapter will walk through an example of how to embed Rust code within an existing C program.