Rust and Tell - Berlin - Let our rusty crab explore the depths of the C by Yvan Sraka

Explore the depths of C with Rust's external keyword, proc macros, and

Key takeaways
  • Rust’s external keyword allows you to call functions from outside the program, but it’s not needed for dynamic libraries.
  • Proc macros can operate on top of a type and generate code.
  • You can use unsafe to access external data, but it should be used carefully to avoid performance bottlenecks.
  • FFI (Foreign Function Interface) techniques can be used to share data between runtimes, but they can introduce performance overhead.
  • There are various interoperability solutions available, such as C ABI, Google Protocol Buffers, and JSON.
  • Rust’s extern keyword can be used to declare functions that are implemented in another language.
  • You can use unsafe to call functions from outside the program, but it should be used carefully to avoid performance bottlenecks.
  • Rust’s extern keyword can be used to declare functions that are implemented in another language.
  • You can use unsafe to call functions from outside the program, but it should be used carefully to avoid performance bottlenecks.
  • Rust’s extern keyword can be used to declare functions that are implemented in another language.
  • You can use unsafe to call functions from outside the program, but it should be used carefully to avoid performance bottlenecks.