win32-version-info

Crates.iowin32-version-info
lib.rswin32-version-info
version0.1.0
sourcesrc
created_at2024-09-24 01:55:45.574152
updated_at2024-09-24 01:55:45.574152
descriptionRetrieve file version info (file description, file version, etc.) from Windows files
homepage
repositoryhttps://github.com/Nekomaru-PKU/win32-version-info
max_upload_size
id1384649
size35,280
Nekomaru (Nekomaru-PKU)

documentation

README

win32-version-info: Retrieve file version info (file description, file version, etc.) from Windows files, powered by windows-rs

Usage

use win32_version_info::VersionInfo;

let info = VersionInfo::from_file("path/to/your/file.exe")
    .expect("Failed to retrieve version information");

println!("File description: {}", info.file_description);
println!("File version: {}", info.file_version);

Considerations

This crate is built upon the official Rust bindings of Win32 APIs provided by the windows crate maintained by Microsoft.

This crate is highly inspired by the implementation of the System.Diagnostics.FileVersionInfo class in the Microsoft .NET Reference Source. Here I

This crate should work in most cases but may have trouble with some rare edge cases. If you encounter any issues, please report it on the GitHub repository and I'm glad to help.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See LICENSE-APACHE and LICENSE-MIT.

Commit count: 1

cargo fmt