rust-cookbook
rust-cookbook copied to clipboard
Cookbook ideas for "cc" crate
This crate is presently being evaluated and I don't see a cookbook issue opened.
This one is weird because its a build time crate. But it is pretty important, and a good thing to teach new Rust users about. We might see if we can figure out a way to present examples.
Some ideas
- [x] Compile and link statically to a bundled C library
- [ ] Compile and link statically to an external C library
- [ ] Compile and link dynamically to an external C library
- [x] Compile a C library while setting custom defines
- [x] Compile and link statically to a bundled C++ library
use the cc crate
I would propose that these would be put into a separate build_tools.md file/section (or something along those line) as these are not your average runnable code examples
I see the as the first example https://github.com/rust-lang-nursery/rust-cookbook/issues/292 as the one that would have the longest explanation followed by the next 4 examples showing the possible minor differences (with much shorter descriptions)
cc #328