Crates.io | better_embedded |
lib.rs | better_embedded |
version | 0.4.0 |
source | src |
created_at | 2024-09-05 02:49:11.949359 |
updated_at | 2024-10-06 18:38:11.410914 |
description | Embed files and release them at runtime |
homepage | |
repository | https://github.com/xuxiaocheng0201/better_embedded |
max_upload_size | |
id | 1364111 |
size | 24,559 |
Enables you to embed file and release it at runtime.
Add this to your Cargo.toml
:
[dependencies]
better_embedded = "~0.4"
fn initialize() -> std::io::Result<()> {
better_embedded::release_file(include_bytes!("../README.md"), "Readme.md");
Ok(())
}
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.