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

Download history 57/week @ 2024-08-29 125/week @ 2024-09-05 51/week @ 2024-09-12 37/week @ 2024-09-19 278/week @ 2024-09-26 310/week @ 2024-10-03 56/week @ 2024-10-10 136/week @ 2024-10-17 35/week @ 2024-10-24 68/week @ 2024-10-31 88/week @ 2024-11-07 10/week @ 2024-11-14 12/week @ 2024-11-21 173/week @ 2024-11-28 73/week @ 2024-12-05 182/week @ 2024-12-12

443 downloads per month
Used in 2 crates

MIT license

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