Struct includedir_codegen::IncludeDir [] [src]

pub struct IncludeDir { /* fields omitted */ }

Methods

impl IncludeDir
[src]

Don't include any data, but read from the source directory instead.

Add a single file to the binary. With Gzip compression, the file will be encoded to OUT_DIR first. For chaining, it's not sensible to return a Result. If any to-be-included files can't be found, or encoded, this function will panic!.

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.

Add a whole directory recursively to the binary. This function calls file, and therefore will panic! on missing files.

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.