| Crates.io | version_info |
| lib.rs | version_info |
| version | 0.0.6 |
| created_at | 2022-08-19 04:20:24.008007+00 |
| updated_at | 2023-06-10 22:30:12.337282+00 |
| description | Reads version information for a specified file using WinAPI |
| homepage | |
| repository | https://github.com/x87/version_info_rs |
| max_upload_size | |
| id | 648540 |
| size | 4,642 |
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.
Add version_info as a dependency in your Cargo.toml:
[dependencies]
version_info = "*"
let (a1, a2, a3, a4) = version_info::get_file_version("mylib.dll")?;
println!("mylib.dll's version is {}.{}.{}.{}", a1, a2, a3, a4);
MIT License