I am successfully using a .c file with Rust (see this answer). How can I link multiple .c files? I've already tried #![link_args="/c_src/*.c"] with no luck.
- rust-demo
- src
- c_src
- file1.c
- file2.c
- etc...
- main.rs
Edit:
I think a better question would be, how can I simply drop the C source code in my Rust directory and start using it directly by using Rust's link attribute & extern (or any other way) with the above example in mind?