#com #mscorlib #api-bindings #windows

macro mscorlib_safe_derive

Safe wrappers around FFI bindings to mscorlib

4 releases

Uses old Rust 2015

0.1.3 Aug 17, 2018
0.1.2 Aug 13, 2018
0.1.1 Aug 2, 2018
0.1.0 Aug 1, 2018

#348 in #com


Used in mscorlib-safe

MIT license

5KB

mscorlib-safe

Safe wrappers around raw FFI bindings in mscorlib-sys.

Provides traits and structs for interacting with FFI bindings in Rusty ways.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Windows 10
Visual Studio Community 2017
.Net >= 4.6.1
Rust >= 1.28

These are needed for mscorlib-sys, not mscorlib-safe.

Installing

Clone the repository

git clone https://github.com/ZerothLaw/mscorlib-safe.git

Move into the directory

cd mscorlib-safe/

Build the library

cargo build

See examples\integration.rs for an example of how to work with the wrappers.

Or add this line to your .toml file:

[dependencies]
mscorlib-safe = "0.1.3"

Running the tests

cargo test

Deployment

This is intended to be compiled into a final executable, not deployed on its own.

Built With

  • Rust - the language, compiler, and package management
  • winapi-rs - invaluable model for the bindings, as well as original developer of many of the macros used.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Rust developers and designers for an excellent language and environment
  • retep998 for winapi

Dependencies

~2MB
~47K SLoC