GitXplorerGitXplorer
l

cdy

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
9cb0dfe56fe6b88591acb5740ad267a47a75bb8e

initial sample no_std cdylib linked to a C binary

llambdageek committed 5 years ago

README

The README file for this repository.

Sample project that links a C program with a rust cdylib no_std dynamic library.

This works on OSX.

The tricky bits are in cdy/.cargo/config - we need to build the dylib with a name that doesn't include the absolute path to the cargo target/ directory. instead we make the name be @executable_path/libcdy.dylib which means the linker will look for the library next to the binary foo.