version_info

Crates.ioversion_info
lib.rsversion_info
version0.0.6
sourcesrc
created_at2022-08-19 04:20:24.008007
updated_at2023-06-10 22:30:12.337282
descriptionReads version information for a specified file using WinAPI
homepage
repositoryhttps://github.com/x87/version_info_rs
max_upload_size
id648540
size4,642
Seemann (x87)

documentation

README

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

Commit count: 7

cargo fmt