docs.rs failed to build msixbundle-1.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
msixbundle
Rust library for building and signing Windows MSIX packages and bundles using the Windows SDK toolchain.
Installation
[]
= "1.0"
Features
- SDK auto-discovery: Automatically locate Windows SDK tools via registry
- Manifest parsing: Extract version and display name from
AppxManifest.xml - Package creation: Create
.msixfiles for each architecture - Bundle creation: Combine multiple
.msixfiles into a.msixbundle - Code signing: Sign packages and bundles with PFX certificates
- Timestamping: Support for RFC3161 and Authenticode protocols
- Validation: Validate packages using WACK and verify signatures
API
| Function | Description |
|---|---|
locate_sdk_tools() |
Find Windows SDK tools on the system |
read_manifest_info() |
Parse AppxManifest.xml for version and identity |
pack_arch() |
Create a per-architecture .msix package |
build_bundle() |
Combine multiple .msix files into a .msixbundle |
sign_artifact() |
Sign packages/bundles with a PFX certificate |
verify_signature() |
Verify digital signatures |
validate_package() |
Validate packages using WACK |
Usage
use *;
use Path;
Cargo Features
sdk-discovery (default)
Automatically locates Windows SDK tools via the Windows registry.
[]
= { = "1.0", = true }
To disable auto-discovery and provide paths manually:
[]
= { = "1.0", = false }
Error Handling
The library uses anyhow::Result for error handling and provides custom error types via MsixError:
ToolMissing: Windows SDK tool not foundMakeAppx: MakeAppx.exe operation failedSignTool: signtool.exe operation failedManifest: Manifest parsing errorValidation: WACK validation failed
Requirements
- Windows OS with Windows SDK 10 installed
- MakeAppx.exe, signtool.exe, and appcert.exe (for validation)
License
MIT License