Is it appropriate to compile a dll with a class inside it?

There is a very convenient Liba (Krat), I want to write over it a wrapper simplifying a lot of the routine and give in the form of a dll for writing software in c++. The pros have been uploaded yet class for working with him. Googled - like you, but (honestly) don't want to go and to stumble on a rake for nothing. How difficult is it to implement and that all will be smooth?
April 19th 20 at 12:35
2 answers
April 19th 20 at 12:37
Solution
Quite adequately. The main unpleasant stage is usually to push everything through sesny FFI - can be quite unpleasant if the original rusty API uses many high level language features.

Useful articles on the topic: https://hsivonen.fi/modern-cpp-in-rust
Thank you! Straight to the point what was trying to Google, but I Google like the gardens took :) - Kameron_Grimes7 commented on April 19th 20 at 12:40
April 19th 20 at 12:39
Better to do an open source solution that anyone can integrate into their projects as a dll or static lib.
Well, it's hardly the wrapper will be live for the specific purpose to vytachivanija and software will not be sold. - Kameron_Grimes7 commented on April 19th 20 at 12:42

Find more questions by tags RustDLLC++OOP