Crate better_embedded

Source
Expand description

§Better embedded

Crate GitHub last commit GitHub issues GitHub pull requests GitHub

§Description

Enables you to embed file and release it at runtime.

§Usage

Add this to your Cargo.toml:

[dependencies]
better_embedded = "~0.4"

§Example

fn initialize() -> std::io::Result<()> {
    better_embedded::release_file(include_bytes!("../README.md"), "Readme.md");
    Ok(())
}

§License

This project is licensed under either of

Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0) MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)

at your option.

Modules§

strategies
Check strategies.

Functions§

release_file
Write the embedded data to the file.
release_file_with_check
Check if the file is the same as the embedded data, if not, write the embedded data to the file.