Crate cargo_resources

Source
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§

Enums§

  • What sort of file encoding the resource is using (i.e. text or binary)

Functions§

Type Aliases§