An open API service indexing awesome lists of open source software.

https://github.com/suvayu/rust-c-to-fortran-toy-ex

A toy example of how to talk to Fortran from Rust using the C-ABI
https://github.com/suvayu/rust-c-to-fortran-toy-ex

c-abi c-language fortran interoperability rust rust-lang

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Rust/C to Fortran example

A fortran function implemented in [triangle.f90](./src/triangle.f90)
being called from C/Rust.

## Build Rust

```
$ cargo build
$ cargo run
```

## Build C

```
$ make c_exe
$ ./c_exe
```