09 C Interface and Unit Testing | Rust Tutorials

Опубликовано: 21 Май 2021
на канале: Jeff No Zhao
1,671
67

Check out the entire playlist here: https://www.youtube.com/playlist?list...

Because Rust advertises itself as a system programming language, you'll often have to interface with C code. In this video, we'll be going over how to work with C code in Rust.

We'll be writing a Rust wrapper for the glibc function wordexp.
wordexp() is a function does a shell-like expansion on a given string.
It takes a string, wordexp_t struct and various flags and returns an integer indicating its success status.

Find me elsewhere:
Instagram:   / jeff.no.zhao  
Github: https://github.com/kamiyaa

In order to make sure our code is correct, we will also be writing unit tests to test our library functions.

Hope you guys found this useful and learned something new!
If you have topics you want me to cover in future videos, leave a comment down below.


На этой странице сайта вы можете посмотреть видео онлайн 09 C Interface and Unit Testing | Rust Tutorials длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Jeff No Zhao 21 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,671 раз и оно понравилось 67 зрителям. Приятного просмотра!