x87 / version_info_rs

A Rust crate to read file version information using WinAPI

Home Page:https://crates.io/crates/version_info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crates.io docs.rs

version_info

Returns a file version composed of four numbers if the given file has the version information.

Returns None if the file does not have the version information or if the version information is invalid.

Usage

Add version_info as a dependency in your Cargo.toml:

[dependencies]
version_info = "*"

Example

let (a1, a2, a3, a4) = version_info::get_file_version("mylib.dll")?;
println!("mylib.dll's version is {}.{}.{}.{}", a1, a2, a3, a4);

License

MIT License

About

A Rust crate to read file version information using WinAPI

https://crates.io/crates/version_info


Languages

Language:Rust 100.0%