bracket-embedding

Crates.iobracket-embedding
lib.rsbracket-embedding
version0.8.7
sourcesrc
created_at2022-10-04 18:52:30.416255
updated_at2022-10-04 18:52:30.416255
descriptionProvides resource embedding services for bracket-lib
homepagehttps://github.com/thebracket/bracket-lib
repositoryhttps://github.com/thebracket/bracket-lib
max_upload_size
id680030
size85,546
Herbert "TheBracket" (thebracket)

documentation

README

Bracket-embedding

bracket-lib includes a system for embedding resources inside your binary (particularly useful for wasm builds). This crate provides the supporting infrastructure for the embedding. It's not a lot of use on its own.

Example of use

use bracket_embedding::prelude::*;

embedded_resource!(SOURCE_FILE, "embedding.rs");

fn main() {
   // This helper macro links the above embedding, allowing it to be accessed as a resource from various parts of the program.
   link_resource!(SOURCE_FILE, "embedding.rs");
}
Commit count: 1212

cargo fmt