Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vmchale/cpp-build

Repository files navigation

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.

About

Use the C pre-processor on Rust projects

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /