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
- Host: GitHub
- URL: https://github.com/suvayu/rust-c-to-fortran-toy-ex
- Owner: suvayu
- License: unlicense
- Created: 2022-11-03T15:11:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T11:57:13.000Z (over 2 years ago)
- Last Synced: 2025-03-14T19:58:41.684Z (2 months ago)
- Topics: c-abi, c-language, fortran, interoperability, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```