Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DutchGhost/zigiffy
Rust FFI with Zig
https://github.com/DutchGhost/zigiffy
Last synced: about 1 month ago
JSON representation
Rust FFI with Zig
- Host: GitHub
- URL: https://github.com/DutchGhost/zigiffy
- Owner: DutchGhost
- License: mit
- Created: 2018-10-04T18:42:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T17:59:17.000Z (over 4 years ago)
- Last Synced: 2025-01-05T13:35:09.590Z (about 2 months ago)
- Language: Zig
- Size: 258 KB
- Stars: 27
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-list - DutchGhost/zigiffy
- awesome-rust-list - DutchGhost/zigiffy
README
# zigiffy
Rust FFI with ZigThis is a project grown out of curiosity in Rust and Zig. The idea is to make Rust interact with Zig code.
This works, because both languages have the ability to make use of C FFI.The name `zigiffy` is a combination of `Zig` and `FFI`.
The counterpart, `rustiffy` also exists: [rustiffy](https://github.com/DutchGhost/rustiffy)# Build
This projects works in Windows under the WSL.
In order for `build.rs` to call the zig compiler, one needs to set `ZIG_COMPILER` as an environment variable to the full path of where your zig compiler is located:
```
export ZIG_COMPILER=~/zig-linux-x86_64-0.6.0/zig
```