Expand description
Cargo Resources provides a cargo command line tool and library (i.e. this module), to help declare and collate resources within Cargo Crates.
Usage:
use std::env::current_dir;
use cargo_metadata::camino::Utf8PathBuf;
use cargo_resources::collate_resources;
use std::error::Error;
let cwd = current_dir().unwrap();
let manifest_file = Utf8PathBuf::from_path_buf(cwd).unwrap().join("Cargo.toml");
// Collate resources from the crate's dependencies.
let _r = collate_resources(&manifest_file);
Structs§
- The structure matching the resource declaration (provides) in the package metadata.
- The fully populated resource specification (derived from a crate’s resource declaration).
Enums§
- What sort of file encoding the resource is using (i.e. text or binary)
Functions§
- Collate the resources for the given crate, into the crate.
Type Aliases§
- The Resource Name
- The Resource’s SHA 256 Value