Skip to content

dodecaphonic/rust_ffi_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rust FFI example

A tiny example in wrapping a C library in Rust, with probably very bad code and wrong idioms. The idea was working out how to pass structs in -- case in point, something that can have nullable pointers, which would not work with declaring a Box<T>, as I understand it.

Running:

$ cargo run

It should print the following:

126.959649
600

About

A tiny Rust FFI example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published