#COM #variant #interop #safearray

oaidl

Crate to manage conversions to/from SAFEARRAY, VARIANT, and BSTR data structures in COM interop

7 releases

0.2.1 Oct 21, 2018
0.2.0 Oct 20, 2018
0.1.4 Oct 9, 2018

#44 in Windows APIs

Download history 78/week @ 2018-10-16 12/week @ 2018-10-23 45/week @ 2018-10-30 30/week @ 2018-11-06 14/week @ 2018-11-13 14/week @ 2018-11-20 23/week @ 2018-11-27 29/week @ 2018-12-04 29/week @ 2018-12-11 15/week @ 2018-12-18 3/week @ 2018-12-25 3/week @ 2019-01-01 10/week @ 2019-01-08 8/week @ 2019-01-15 3/week @ 2019-01-22

42 downloads per month

MIT license

98KB
2K SLoC

oaidl

![Crates.io]![docs.rs(https://docs.rs/oaidl/badge.svg)]

A crate to convert common Rust types to common COM/OLE types, primarily for use in FFI - BSTR, SAFEARRAY, and VARIANT are the three implemented here.

This crate provides traits and trait implementations to make it easy and safe to convert between Rust types and the FFI-compatible data types.

For reference, a SAFEARRAY of VARIANTs corresponds to a C# object[]. A VARIANT is considered an object by C# interop.

Documentation

License

This project is distributed under the terms of the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~23K SLoC