| Crates.io | editres |
| lib.rs | editres |
| version | 0.1.6 |
| created_at | 2024-01-11 16:43:01.159359+00 |
| updated_at | 2024-01-27 08:43:13.288085+00 |
| description | Embed data into executables after build |
| homepage | https://github.com/branchseer/editres |
| repository | https://github.com/branchseer/editres |
| max_upload_size | |
| id | 1096502 |
| size | 34,187 |
Embed data into executables after build.
editres::resource!use editres::resource;
use std::str::from_utf8;
# fn main() {
let res = resource!("my_res"); // Option<&'static [u8]>
if let Some(res) = res {
println!("{}", from_utf8(res).unwrap());
} else {
println!("my_res is not injected yet");
}
# }
You can inject data in executables using library editres or command line from editres_cli.
editres as a dependency with feature injector enabled,injector::inject.cargo install editres_cli, or download from the releases.editres help injecteditres is based on Node.js' single executable application implementation: postject.