#variant #interop #com #api-bindings #data-structures #safearray

oaidl

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

7 releases

Uses old Rust 2015

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

#286 in Windows APIs

Download history 1/week @ 2024-07-21 6/week @ 2024-07-28 5/week @ 2024-08-04 1/week @ 2024-08-11 11/week @ 2024-09-22 3/week @ 2024-09-29

217 downloads per month
Used in 2 crates

MIT license

99KB
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.6–2.1MB
~36K SLoC