#Generating bindings to C library
13 messages · Page 1 of 1 (latest)
K, then you should have everything set up right 
You don't see any output because it's only temporary
The temp file is somewhere in the targets/ folder probably
If you use the items as shown in the docs above, or from another package you should be able to access them. You can try it out by making some examples in examples/
You can see how to make examples for libraries at http://xion.io/post/code/rust-examples.html (the https is broken for some reason)
When you’re writing a library for other programs to depend on, it is paramount to think how the developers are going to use it in their code. The best way to ensure they have a pleasant experience is to put yourself in their shoes. Forget the internal details of your package, and consider only its outward interface. Then, come up with a realisti...
For tests https://doc.rust-lang.org/rust-by-example/testing/unit_testing.html should help
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.
It will keep using that one until something changes to the header file
Awesome, ask if you have any other issues 
This should have been setup in the build script link search path
You can use https://github.com/rust-lang/libc for libc types and functions. Including them in your library is dependant on situation
Oh, you can't put a relative path: it needs to be absolute thirdparty\\opengr2\\libopengrn\\
Recommend to use something like
let manifest_dir = var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search={}/libraries/lib/arm-linux-gnueabihf", manifest_dir);