Skip to main content

Crate embark_macros

Crate embark_macros 

Source
Expand description

Proc-macros for embark: embed_bytes!, embed_crypt!, and the Embed derive. Re-exported from the embark crate under its derive feature; use them via embark::embed_bytes! etc. rather than depending on this crate directly.

Macros§

embed_bytes
Embeds a single file’s bytes at build time, expanding to an EmbeddedBytes (or, with no codec argument, a plain include_bytes!-style &'static [u8]).
embed_crypt
Embeds a single file, encrypted at build time with ChaCha20-Poly1305 (or, with cipher = aes, AES-256-GCM), expanding to an EncryptedFile, generic over a type-state marker (EmbeddedKey or RuntimeKey) that determines which decrypt methods the resulting handle has.

Derive Macros§

Embed
Derives Embed for a unit struct, embedding every file under a folder at build time.