| Crates.io | editres_cli |
| lib.rs | editres_cli |
| version | 0.1.6 |
| created_at | 2024-01-27 06:15:51.256896+00 |
| updated_at | 2024-01-27 08:43:17.615548+00 |
| description | Command line tool for injecting data into executables that use editres |
| homepage | https://github.com/branchseer/editres |
| repository | https://github.com/branchseer/editres |
| max_upload_size | |
| id | 1116527 |
| size | 115,522 |
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.