Crate styx_embed_macros

Crate styx_embed_macros 

Source
Expand description

§styx-embed-macros

crates.io documentation MIT/Apache-2.0 licensed

Proc macros for embedding Styx schemas in binaries. Used by styx-embed to compress and embed schema data at compile time.

§Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

AWS Zed Depot

…without whom this work could not exist.

§License

Licensed under either of:

at your option. Proc macros for embedding Styx schemas in binaries.

These macros compress schemas at compile time and embed them with a magic header so they can be extracted without execution.

Each schema must have a meta { id ... } block. The ID is used to generate a unique static name, allowing multiple schemas to coexist in the same binary.

Macros§

embed_file
Embed a schema from a file (reads at compile time).
embed_files
Embed multiple schema files (reads at compile time).
embed_inline
Embed a schema from an inline string literal.
embed_outdir_file
Embed a schema file from OUT_DIR (for build script output).
embed_schema
embed_schemas