1 个不稳定版本
0.1.0 | 2020年6月14日 |
---|
#59 in #manifest
23KB
543 代码行数,不包括注释
SxS-manifest
Microsoft SxS 集成组件清单生成器
使用方法
// 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 集成组件清单生成器
示例
use sxs_manifest::*;
let mut manifest = AssemblyManifest::default();
manifest.compatibility.supported_os.insert(manifest::SupportedOS::Windows10);
let manifest = manifest.serialize_to_string()?;
依赖
~0.5–1MB
~22K 额外代码行数