Unsafe programming and FFI: setup

In this lab, we will create a Rust interface for the zstd library.


Check that the zstd library and its development files (headers and .so link) are installed on your computer (libzstd1 and libzstd-dev packages on Debian based installations, zstd on Arch Linux).

Creating a workspace

For this lab, we will need a cargo workspace containing two library crates that you will create later: zstd-sys (low-levl interface) et zstd (high-level interface)

Exercise 0.a: Create the cargo workspace which an empty members list.