/rust-ffi

Using Rust code in a C project – A tale of failure (I mean a case study)

Primary LanguageRustMIT LicenseMIT

Rust FFI

Using Rust code in a C project – A tale of failure

What is the point of this?

Embedding Rust code into an existing C project is a really cool idea. This repo is a weird experiment to see how to do that the mots efficiently.

  • Call Rust functions from C
  • Use Rust struct in C
  • Link no_std crate to C project
  • Use no_std dependencies and Rust state in C