Implement Redpoint.LibHydrogen as a maintained C# wrapper around libhydrogen
We need to:
- Set up a CMake project that can build libhydrogen for Windows, macOS and Linux, and package these up into NuGet packages. The documentation on this isn't great, but it looks like we want to shove things into the
runtimes
folder. Microsoft.ClearScript.V8.Native.win-x64 has a structure we can copy, and the.nuspec
can be seen by clicking onView Metadata source
on that linked page as well. - Write a Redpoint.LibHydrogen library that depends on the native packages and wraps the native API. Hydrogen-CSharp could be a starting point, but it's very old so I don't know how up-to-date it is. We want to make sure all of the APIs are provided at least in a
Native
class for low-level use, but probably write some higher level primitives that allow you to set up acontext
once and then call library functions against the same context.