7.6.0
FlatSharp 7.6.0 is a small feature release that adds a couple of quality of life features:
-
New
Match
methods on Union types that accept delegates. These aren't the most performant but work well for one-offs or cases where you don't want to implement a Visitor. -
Optional support for
file
visibility on types in FlatSharp-generated code. This reduces the clutter you'll see in your code from FlatSharp. Since file visibility is only supported on C# 11 and above, you will need to opt into this behavior:<PropertyGroup> <FlatSharpFileVisibility>true</FlatSharpFileVisibility> </PropertyGroup>
From the command line:
dotnet FlatSharp.Compiler.dll --file-visibility
In addition to these features, FlatSharp's primary unit tests now all run in NativeAOT mode as well as JIT mode thanks to the new NativeAOT-compatible MSTest runner.
What's Changed
- Update Samples for 7.5 by @jamescourtney in #429
- Add union match method by @jamescourtney in #430
- Update build system by @jamescourtney in #431
- Convert E2E Tests to use MSTest to enable NativeAOT unit testing by @jamescourtney in #432
- Refactor Benchmarks to work with AOT by @jamescourtney in #433
- Build refactor by @jamescourtney in #434
- Add file visibility option by @jamescourtney in #435
Full Changelog: 7.5.1...7.6.0