includer_codegen
This crate is intended to be used at build time to generate code that includes
your assets. The "frontend" library includer
provides the types for your
library/binary that includer_codegen
outputs, along with some helpers.
The following is a build.rs
file that includes all the files (recursively) in
the subdirectory resources
in a cargo project.
extern crate includer_codegen;
use *;
use env;
use PathBuf;
Filtering
Filtering files is possible by included filter types. Currently there are built-in ways to include/exclude based on file extension or regex. See the documentation for the api to use these built-in filters.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.