#[derive(RustEmbed)]
{
// Attributes available to this derive:
#[folder]
#[prefix]
#[include]
#[exclude]
#[gzip]
#[br]
}
Expand description
A folder that is embedded into your program.
For example:
ⓘ
#[derive(RustEmbed)]
#[folder = "examples/public"]
struct MyEmbeddedFiles;
The folder
is relative to where your Cargo.toml
file is located. This
example will embed the files under <your-workspace>/examples/public
into
your program.
Please check the package readme for more details.