mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
- Add //! module-level headers and /// item-level docs to every source file - Fix unresolved doc links in hal/mod.rs, ui/mod.rs, transport/pcsc.rs, transport/fido.rs - Add #![deny(missing_docs)] at crate root to enforce doc completeness in CI
20 lines
534 B
Rust
20 lines
534 B
Rust
//! Build script for embedding application resources.
|
|
//!
|
|
//! On Windows, embeds the application icon into the PE binary so that
|
|
//! the `.exe` and taskbar show the correct icon. On Unix this is a no-op.
|
|
|
|
#[cfg(windows)]
|
|
#[allow(clippy::single_component_path_imports)]
|
|
use tauri_winres;
|
|
|
|
/// Embed the application icon into the Windows PE binary.
|
|
#[cfg(windows)]
|
|
fn main() {
|
|
let mut res = tauri_winres::WindowsResource::new();
|
|
res.set_icon("static/appIcons/icon.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
|
|
#[cfg(unix)]
|
|
fn main() {}
|