Skip to content

jose-acevedoflores/cffi-explore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The even better, ridiculously amazing cffi-explore

This project is a rust wrapper around a hypothetical c++ library (see libdummy ) that exposes a C abi. The goal of this repo is to document/explore how to write such a rust wrapper from the perspective of someone not only new to rust, but new to writing non garbage collected code in general.

One very important caveat is that my c/c++ knowledge is very limited. I've lived most of my life in the Java/JS/Python land of GC goodness. This is an attempt to get my feet wet on the mystical world where memory management is ... manual 😱

To build libdummy.so:

pushd libdummy/build
cmake ..
cmake --build . -j 4 # <--or set to desired number of threads
popd

To run:

cargo run

Notes to &self

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published