Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use new style P/Invoke source generation for .Net 7+
See: https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation This is only supported on .Net 7+ and so older versions will still use the old style `extern` support, which is much more difficult to use with non-ASCII character sets when interacting with Rust via FFI. This means that older .Net versions will still not support non-ASCII properly. New style source generation handles marshalling strings as UTF-8 properly and efficiently so that non-ASCII characters can be used. This fixes #468.
- Loading branch information