I'm trying to compile a C++ library (pure code) to a .wasm file for Wasmer so I can run them universally in the server side regardless of what OS it's on. However I find rare documentation which can help me deal with C++ class.
For details, all helpful functions I wanted are in a C++ class named Timer, like Timer.reset(). But it seems that Wasmer can only use exported functions on it's documentation. So it is possible to use exported c++ classes like instance.exports.Timer.reset() in Wasmer?
The main confusion is also about how to wrap this Timer class in .wasm file. I checked emscripten doc which shows this. But the documentation compile them to .js files instead of .wasm.
Questions above combined, I find it hard to get clear procedures to use c++ classes in Wasmer for other programming languages.
I hope I've made a clear problem explanation for anyone willing to give some hints. Bests.