resources_package

Crates.ioresources_package
lib.rsresources_package
version0.1.0
sourcesrc
created_at2014-11-20 21:26:34.179726
updated_at2015-12-11 23:55:29.371301
descriptionMacro that allows you to package files inside your libraries or executables.
homepage
repositoryhttps://github.com/tomaka/rust-package
max_upload_size
id160
size8,317
xml (github:serde-rs:xml)

documentation

README

Build Status

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());
    }
}
Commit count: 52

cargo fmt