/cpp-build

Use the C pre-processor on Rust projects

Primary LanguageRustBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

cpp-rs

Put this in your build.rs to use the C pre-processor with Rust.

Example Use

fn main() {
    walk_dir("src")
}

This will pre-process any .cpprs source files in src/ using the system C compiler.

See the lzo-macros example.

Known Defects

The C pre-processor will discard any lines beginning with #, so that e.g.

#[macro_use]

would be thrown away.