cpprs

Crates.iocpprs
lib.rscpprs
version0.1.0
sourcesrc
created_at2020-10-11 21:10:41.510942
updated_at2020-10-11 21:10:41.510942
descriptionUse the C pre-processor on Rust source files
homepage
repositoryhttps://github.com/vmchale/cpp-build.git
max_upload_size
id298439
size10,869
Vanessa McHale (vmchale)

documentation

README

cpp-rs

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

Example Use

fn main() {
    walk_dir(CCompiler::GCC, "src")
}

This will pre-process any .cpprs source files in src/ using GCC.

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.

Commit count: 33

cargo fmt