Crates.io | bracket-embedding |
lib.rs | bracket-embedding |
version | 0.8.7 |
source | src |
created_at | 2022-10-04 18:52:30.416255 |
updated_at | 2022-10-04 18:52:30.416255 |
description | Provides resource embedding services for bracket-lib |
homepage | https://github.com/thebracket/bracket-lib |
repository | https://github.com/thebracket/bracket-lib |
max_upload_size | |
id | 680030 |
size | 85,546 |
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.
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");
}