ngorden / rust-ffi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Rust 54.8%Language:C 35.4%Language:CMake 9.8%