Skip to main content

embed_migrations

Macro embed_migrations 

Source
embed_migrations!() { /* proc-macro */ }
Expand description

Embeds a Toasty migration directory into the application binary.

With no argument, the macro reads toasty/ relative to CARGO_MANIFEST_DIR. Pass a string literal to embed a different directory that contains history.toml plus the migrations/*.sql files named by that history. The macro is available through toasty when its migration feature is enabled.