19 releases

new 0.0.21 Mar 6, 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

#5 in #linked

Download history 10/week @ 2024-11-16 12/week @ 2024-11-23 190/week @ 2024-11-30 208/week @ 2024-12-07 37/week @ 2024-12-14 1/week @ 2024-12-21 11/week @ 2024-12-28 164/week @ 2025-01-04 39/week @ 2025-01-11 13/week @ 2025-01-18 213/week @ 2025-01-25 133/week @ 2025-02-01 51/week @ 2025-02-08 51/week @ 2025-02-15 55/week @ 2025-02-22 141/week @ 2025-03-01

304 downloads per month
Used in 2 crates

MIT license

13KB
201 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–0.9MB
~20K SLoC