Expand description
§Better embedded
§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.