disco-assets 0.2.0

Assets crate generated by rlvgl-creator
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 12.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 92.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • SoftOboros/rlvgl
    32 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iraabbott

disco-assets

This crate was generated by rlvgl-creator.

Embed

Enable the embed feature and reference asset constants directly:

use disco-assets::embed::SOME_ASSET;

Vendor

Enable the vendor feature to have the included build.rs copy asset files and generate an rlvgl_assets.rs module at compile time. In your crate, include the generated module:

include!(concat!(env!("OUT_DIR"), "/rlvgl_assets.rs"));

For custom pipelines, you may call the helpers from your own build.rs:

fn main() {
    let out = std::path::Path::new(&std::env::var("OUT_DIR").unwrap());
    disco-assets::vendor::copy_all(out).unwrap();
    disco-assets::vendor::generate_rust_module(out).unwrap();
}