6 releases
Uses old Rust 2015
0.0.6 | Jun 24, 2015 |
---|---|
0.0.5 | Mar 25, 2015 |
0.0.4 | Jan 5, 2015 |
0.0.2 | Dec 23, 2014 |
0.0.1-pre.1 | Nov 20, 2014 |
#19 in #phase
Used in resources_package
3KB
This crate allows you to package several files in your executable.
This is similar to include_bin!
but easier to use when you have
a lot of files.
Usage:
#![feature(phase)]
#[phase(plugin)]
extern crate resources_package;
extern crate resources_package_package;
static package: resources_package_package::Package = resources_package!([
"path/to/resources",
"other/path/to/resources"
]);
fn main() {
for &(ref name, content) in package.iter() {
println!("{}", name.display());
}
}
lib.rs
:
Defines the Package
struct that is generated by the resources_package!
macro.