#winapi

version_info

Reads version information for a specified file using WinAPI

6 releases

0.0.6 Jun 10, 2023
0.0.5 Aug 20, 2022

#34 in #windows-api

Download history 86/week @ 2024-07-14 72/week @ 2024-07-21 76/week @ 2024-07-28 66/week @ 2024-08-04 98/week @ 2024-08-11 57/week @ 2024-08-18 66/week @ 2024-08-25 66/week @ 2024-09-01 91/week @ 2024-09-08 60/week @ 2024-09-15 41/week @ 2024-09-22 70/week @ 2024-09-29 70/week @ 2024-10-06 69/week @ 2024-10-13 65/week @ 2024-10-20 51/week @ 2024-10-27

258 downloads per month

MIT license

5KB

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

Dependencies

~225KB