Skip to content

mikigraf/Crust---C-to-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example of calling Rust from C - the 101 example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published