1 unstable release
0.1.0 | Jun 14, 2020 |
---|
#58 in #manifest
23KB
543 lines
SxS-manifest
Microsoft SxS assembly manifest generator
Usage
// in build.rs
fn main() {
let mut res = winres::WindowsResource::new();
res.set_manifest(&{
let mut manifest = sxs_manifest::AssemblyManifest::default();
manifest.compatibility.max_version_tested =
Some(sxs_manifest::manifest::windows_version::WINDOWS_10_1903);
manifest
.compatibility
.supported_os
.insert(sxs_manifest::manifest::SupportedOS::Windows10);
manifest.serialize_to_string().unwrap()
});
res.compile().unwrap();
}
lib.rs
:
Microsoft SxS assembly manifest generator
Examples
use sxs_manifest::*;
let mut manifest = AssemblyManifest::default();
manifest.compatibility.supported_os.insert(manifest::SupportedOS::Windows10);
let manifest = manifest.serialize_to_string()?;
Dependencies
~0.5–1MB
~22K SLoC