17 releases

new 0.0.19 Jan 29, 2025
0.0.17 Dec 12, 2024
0.0.15 Nov 6, 2024
0.0.8 Jul 12, 2024
0.0.1 Mar 14, 2024

#522 in Unix APIs

Download history 201/week @ 2024-10-08 13/week @ 2024-10-15 162/week @ 2024-10-22 7/week @ 2024-10-29 147/week @ 2024-11-05 8/week @ 2024-11-12 13/week @ 2024-11-19 68/week @ 2024-11-26 176/week @ 2024-12-03 190/week @ 2024-12-10 10/week @ 2024-12-17 4/week @ 2024-12-24 7/week @ 2024-12-31 191/week @ 2025-01-07 14/week @ 2025-01-14 14/week @ 2025-01-21

230 downloads per month
Used in 2 crates

MIT license

13KB
208 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.4–9.5MB
~20K SLoC