| Crates.io | cpprs |
| lib.rs | cpprs |
| version | 0.1.0 |
| created_at | 2020-10-11 21:10:41.510942+00 |
| updated_at | 2020-10-11 21:10:41.510942+00 |
| description | Use the C pre-processor on Rust source files |
| homepage | |
| repository | https://github.com/vmchale/cpp-build.git |
| max_upload_size | |
| id | 298439 |
| size | 10,869 |
Put this in your build.rs to use the C pre-processor with Rust.
fn main() {
walk_dir(CCompiler::GCC, "src")
}
This will pre-process any .cpprs source files in src/ using
GCC.
See the lzo-macros example.
The C pre-processor will discard any lines beginning with #, so that e.g.
#[macro_use]
would be thrown away.