Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use std::process::Command;
fn main() {
embuild::espidf::sysenv::output();
slint_build::compile_with_config(
"res/ui/main.slint",
slint_build::CompilerConfiguration::new()
.embed_resources(slint_build::EmbedResourcesKind::EmbedForSoftwareRenderer),
)
.unwrap();
// Get git commit hash
println!("cargo:rerun-if-changed=../../.git/HEAD");
let output = Command::new("git")
.args(&["rev-parse", "HEAD"])
.output()
.expect("git command failed");
let commit_hash = str::from_utf8(&output.stdout)
.expect("git output invalid utf-8")
.trim();
println!("cargo:rustc-env=GIT_COMMIT={}", commit_hash);
println!("cargo:rustc-link-arg=-Wl,--wrap=esp_panic_handler");
}
ce607713cThis file is pinned to the selected release. Download the original to open it in your design tool.