Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomaka/resources_package

Package files in your executables with the Rust language
https://github.com/tomaka/resources_package

Last synced: 3 months ago
JSON representation

Package files in your executables with the Rust language

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/tomaka/rust-package.svg?branch=master)](https://travis-ci.org/tomaka/rust-package)

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:

```rust
#![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());
}
}
```