Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 346 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 346 Bytes

Crust---C-to-Rust

Simple example of how to call functions written in Rust from C code. Literally the "Hello World!".

This code is part of my blog post.

Running

cargo build --release

gcc -o crust ./src/crust.c -Isrc  -L. -l:target/release/libcrust.so

./crust