Adding rust_embed library as a dependency

If you have cargo-edit installed, run this command in a terminal, in your project's directory:

cargo add rust-embed

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

rust-embed = "5.5.1"

The rust_embed library will automatically available globally. Read the rust_embed library documentation.

Back to the crate overview.