Skip to content

A toy example of how to talk to Fortran from Rust using the C-ABI

License

Notifications You must be signed in to change notification settings

suvayu/rust-c-to-fortran-toy-ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust/C to Fortran example

A fortran function implemented in triangle.f90 being called from C/Rust.

Build Rust

$ cargo build
$ cargo run <arg>

Build C

$ make c_exe
$ ./c_exe <arg>