| Crates.io | cargo-packager-resource-resolver |
| lib.rs | cargo-packager-resource-resolver |
| version | 0.1.2 |
| created_at | 2024-01-28 15:03:12.335322+00 |
| updated_at | 2024-09-02 15:27:41.13529+00 |
| description | Cargo packager resource resolver |
| homepage | |
| repository | https://github.com/crabnebula-dev/cargo-packager |
| max_upload_size | |
| id | 1117678 |
| size | 10,688 |
Resource resolver for apps that was packaged by cargo-packager.
It resolves the root path which contains resources, which was set using the resources field of cargo packager configuration.
use cargo_packager_resource_resolver::{resources_dir, PackageFormat};
let resource_path = resources_dir(PackageFormat::Nsis).unwrap();
:warning: This feature is only available for Rust apps that were built with cargo packager.
before_each_package_command field of cargo packager configuration to build your app (this will not work with the before_packaging_command field).auto-detect-format for this crate in your Cargo.toml.use cargo_packager_resource_resolver::{resources_dir, current_format};
let resource_path = resources_dir(current_format().unwrap()).unwrap();
MIT or MIT/Apache 2.0 where applicable.