includer

Use dynamically included assets generated by includer_codegen

3 unstable releases

0.2.0 Sep 18, 2018
0.1.1 Sep 17, 2018
0.1.0 Sep 14, 2018

#54 in Build Utils

20 downloads per month

Apache-2.0 OR MIT

4KB

includer Build Status Documentation

The includer crate is the library to be used by other libraries/binaries. This can be considered the "frontend" counterpart to the build time crate that helps you generate code, includer_codegen. For now it's mostly a simple type wrapper to get the generated code that's included to compile correctly and safely.

You would not typically use the types from this library in your codebase, but rather only include them for the generated code to use.

extern crate includer;

use includer::Asset;

// The default file that includer_codegen generates
include!(concat!(env!("OUT_DIR"), "/assets.rs"));

License

Licensed under either of

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.

Dependencies

~258KB