u/masklinnin r/rust • Recommends
On “Enforce compiler error if init function isn't called?”
IIRC /u/jonhoo’s latest crust uses that method: link to this video
On my phone so did not check if I was correct but I think I am.
111K subscribers • 38 videos on Hallway
Advanced. Deep dive for people who know the field.
48K views4 years ago2 recommendations
Programming languagesSystems programmingRustCBuild systems and packaging
Jon Gjengset deep dives into Cargo build scripts and Rust foreign-function interfaces, building bindings against the libsodium C library.
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: doc.libsodium.org/. You can find the Cargo book entry for build scripts at doc.rust-lang.org/cargo/reference/build-scripts.html, and the nomicon entry for ffi at doc.rust-lang.org/nomicon/ffi.html. Live version with chat: youtu.be/pSTPJ39LsEU Introduction libsodium Build scripts OUT_DIR cargo directives Build script sandboxing libgit2-sys bindgen libssh2-sys openssl-sys libsodium-sys Writing our own libsodium-sys Wrapping crypto_generichash Reverse FFI autocfg cbindgen and cxx The Rustacean Station Discord server is at discord.gg/RJdqQ9n.What people say. Recommended as a comprehensive guide to Rust build scripts, FFI, and using bindgen to interface with C libraries.
u/masklinnin r/rust • Recommends
On “Enforce compiler error if init function isn't called?”
u/HeroicKatoraimage · oxide-authin r/rust • Recommends
On “Enforce compiler error if init function isn't called?”