File:Crust of Rust- Build Scripts and Foreign-Function Interfaces (FFI).webm
Summary
Description |
English: This time we go over Cargo build scripts and Rust foreign-function interfaces, including looking at some widely used *-sys crates. We also wrote our own bindings against the libsodium C library: https://doc.libsodium.org/. You can find the Cargo book entry for build scripts at https://doc.rust-lang.org/cargo/reference/build-scripts.html, and the nomicon entry for ffi at https://doc.rust-lang.org/nomicon/ffi.html.
Live version with chat: https://www.youtube.com/watch?v=pSTPJ39LsEU 0:00:00 Introduction 0:02:58 libsodium 0:04:28 Build scripts 0:07:00 OUT_DIR 0:18:01 cargo directives 0:34:09 Build script sandboxing 0:36:36 libgit2-sys 0:54:31 bindgen 1:08:08 libssh2-sys 1:14:38 openssl-sys 1:19:50 libsodium-sys 1:21:29 Writing our own libsodium-sys 1:40:11 Wrapping crypto_generichash 2:02:57 Reverse FFI 2:09:30 autocfg 2:12:14 cbindgen and cxx The Rustacean Station Discord server is at https://discord.gg/RJdqQ9n. |
Date | |
Source | YouTube: Crust of Rust: Build Scripts and Foreign-Function Interfaces (FFI) – View/save archived versions on archive.org and archive.todayCategory:Media from YouTube |
Author | Jon Gjengset |
Licensing

This video, screenshot or audio excerpt was originally uploaded on YouTube under a CC BY license.
Their website states: "YouTube allows users to mark their videos with a Creative Commons CC BY license."
To the uploader: You must provide a link (URL) to the original file and the authorship information if available.
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Attribution:
Jon Gjengset
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
![]() |
This file, which was originally posted to an external website, has not yet been reviewed by an administrator or reviewer to confirm that the above license is valid. See Category:License review needed for further instructions. |