Registry / build-tool / winres

winres

JSON →
library0.1.12rscratesunverified

Create and set windows icons and metadata for executables

# Cargo.toml [dependencies] winres = "0.1.12"
INSTALL
IMPORT
SIG · WINRES
W
winres
build-toolrustv0.1.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WindowsResource
use winres::WindowsResource;

Embeds an icon and metadata into a Windows executable.

use winres::WindowsResource; fn main() { if let Err(e) = WindowsResource::new() .set_icon("icon.ico") .compile() { eprintln!("Failed to compile resources: {}", e); } }
Debug
Known issues
gotchaRequires Windows SDK or MSVC build tools; may fail on cross-compilation.
fix
Install Windows SDK or use cargo with appropriate target.
affects: >=0.1.0
Upgrade
Version history
0.1.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
1
Resources
winres — cargo add winres · libregistry