bracket-embedding 0.8.7

Provides resource embedding services for bracket-lib
Documentation
  • Coverage
  • 75%
    6 out of 8 items documented5 out of 5 items with examples
  • Size
  • Source code size: 85.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 417.46 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • amethyst/bracket-lib
    1690 126 89
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thebracket

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");
}