15 releases
0.0.17 | Dec 12, 2024 |
---|---|
0.0.15 | Nov 6, 2024 |
0.0.8 | Jul 12, 2024 |
0.0.1 | Mar 14, 2024 |
#4 in #win32
443 downloads per month
Used in 2 crates
14KB
228 lines
mssf-pal (Platform Abstraction Layer)
This crate fills windows api needed for windows-rs to work in linux environment. It contains bare minimum WIN32 API substitute on linux to make windows-rs crate COM support working. Service Fabric Rust app and test all requires this pal shared library to work. This crate is forced to be linked with fabric_base crate.
Originally this crate is a shared lib, but it is a rlib now to avoid dynamic loading and packaging.
lib.rs
:
mssf-pal acts like the windows_core (and windows) crate for the windows-bindgen code to compile on linux. It reexposes windows_core com supports, and some Win32 error codes. windows_core does not support string types on linux, so we provide an minimal implementation here.
To use mssf-pal for windows-bindgen generated code, alias mssf-pal crate as the windows-core and windows crate, so that the generated code can resolve windows_core crate content via mssf-pal.
Dependencies
~0.5–5MB
~22K SLoC