Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tomaka/resources_package
- Owner: tomaka
- Created: 2014-09-05T15:25:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T11:45:44.000Z (over 9 years ago)
- Last Synced: 2024-10-15T17:21:41.974Z (3 months ago)
- Language: Rust
- Size: 302 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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());
}
}
```