diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-05 14:46:49 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-09-05 14:46:49 +0100 |
commit | 38cfe0b12b45d703375682cce5b45fbbbe2fce07 (patch) | |
tree | a3395f0cdcd371123f2f4472a230d7337cc21534 /src/resource.rs | |
parent | 52293448680bbbd81c78bc7b6c1350d034d6b660 (diff) | |
download | subplot-38cfe0b12b45d703375682cce5b45fbbbe2fce07.tar.gz |
resources: Hidden subcommand to list internal resources
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/resource.rs')
-rw-r--r-- | src/resource.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resource.rs b/src/resource.rs index f22e1ef..cfcc63a 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -50,6 +50,11 @@ lazy_static! { static EMBEDDED_FILES: &[(&str, &[u8])] = include!(concat!(env!("OUT_DIR"), "/embedded_files.inc")); +/// Retrieve the embedded file list +pub fn embedded_files() -> &'static [(&'static str, &'static [u8])] { + EMBEDDED_FILES +} + /// Put a path at the back of the queue to search in fn add_search_path<P: AsRef<Path>>(path: P) { SEARCH_PATHS |