#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

#38 in FFI

Download history 28/week @ 2018-10-11 71/week @ 2018-10-18 27/week @ 2018-10-25 23/week @ 2018-11-01 49/week @ 2018-11-08 15/week @ 2018-11-15 7/week @ 2018-11-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