ocl-include 0.6.0

Simple preprocessor that implements #include mechanism for OpenCL source files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use ocl_include::*;
use std::path::Path;

fn main() {
    let parser = Parser::builder()
        .add_source(
            source::Fs::builder()
                .include_dir(Path::new("./examples"))
                .unwrap()
                .build(),
        )
        .build();
    let node = parser.parse(Path::new("main.c")).unwrap();

    println!("{}", node.collect().0);
}